Changeset 857
- Timestamp:
- 03/01/06 11:48:43 (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STSubTable.cpp
r849 r857 14 14 #include <tables/Tables/SetupNewTab.h> 15 15 #include <tables/Tables/ScaColDesc.h> 16 #include <tables/Tables/TableRecord.h> 16 17 17 18 #include "Scantable.h" … … 28 29 td.addColumn(ScalarColumnDesc<uInt>("ID")); 29 30 String tabname = parent.table().tableName()+"/"+name; 30 SetupNewTable aNewTab(tabname, td, Table:: New);31 SetupNewTable aNewTab(tabname, td, Table::Scratch); 31 32 table_ = Table(aNewTab, parent.table().tableType()); 32 33 idCol_.attach(table_,"ID"); 33 34 34 35 } 35 STSubTable::STSubTable(Table tab )36 STSubTable::STSubTable(Table tab, const String& name) 36 37 { 37 table_ = tab ;38 table_ = tab.rwKeywordSet().asTable(name); 38 39 idCol_.attach(table_,"ID"); 39 40 } -
trunk/src/STSubTable.h
r849 r857 31 31 public: 32 32 STSubTable() {;} 33 STSubTable( casa::Table tab ); 34 STSubTable( const Scantable& parent, 35 const casa::String& name ); 33 STSubTable( casa::Table tab, const casa::String& name); 34 STSubTable( const Scantable& parent, const casa::String& name ); 36 35 37 36 virtual ~STSubTable(); … … 46 45 virtual void setup() = 0; 47 46 // -> virtual bool conformant(const STSubTable& other) = 0; 47 48 virtual const casa::String& name() const = 0; 48 49 49 50 /** … … 62 63 63 64 private: 65 64 66 }; 65 67
Note:
See TracChangeset
for help on using the changeset viewer.