source: trunk/src/STSubTable.cpp@ 831

Last change on this file since 831 was 808, checked in by mar637, 19 years ago

subtable base class for Scantable. Initial revision.

File size: 750 bytes
Line 
1//
2// C++ Implementation: STSubTable
3//
4// Description:
5//
6//
7// Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2006
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12#include <casa/Exceptions/Error.h>
13#include <tables/Tables/TableDesc.h>
14#include <tables/Tables/SetupNewTab.h>
15#include <tables/Tables/ScaColDesc.h>
16
17#include "STSubTable.h"
18
19using namespace casa;
20
21namespace asap {
22
23STSubTable::STSubTable(const casa::String& name, casa::Table::TableType tt) :
24 type_(tt)
25
26{
27 TableDesc td("", "1", TableDesc::Scratch);
28 td.addColumn(ScalarColumnDesc<uInt>("ID"));
29 SetupNewTable aNewTab(name, td, Table::New);
30 table_ = Table(aNewTab, tableType());
31 idCol_.attach(table_,"ID");
32
33}
34
35STSubTable::~STSubTable()
36{
37}
38
39}
Note: See TracBrowser for help on using the repository browser.