Changeset 22
- Timestamp:
- 07/06/04 11:12:48 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTable.cc
r21 r22 65 65 beamSel_(0), 66 66 polSel_(0) { 67 name_ = String(name); 68 Table tab(name_); 69 table_ = tab.copyToMemoryTable(name_); 67 Table tab("dummy"); 68 table_ = tab.copyToMemoryTable("dummy"); 70 69 } 71 70 … … 75 74 this->polSel_= other.polSel_; 76 75 this->chanMask_ = other.chanMask_; 77 this->name_ = String("dummy");78 76 this->table_ = other.table_.copyToMemoryTable(String("dummy")); 79 77 // clear all rows() … … 91 89 beamSel_(0), 92 90 polSel_(0) { 93 name_ = String("SDMemTable");94 91 String exprs = String("select * from $1 where SCANID == ") 95 92 +String::toString(scanID); 96 93 cerr << exprs << endl; 97 94 Table t = tableCommand(exprs,tab); 98 table_ = t.copyToMemoryTable( name_);95 table_ = t.copyToMemoryTable("dummy"); 99 96 } 100 97 … … 119 116 // Now create a new table from the description. 120 117 121 SetupNewTable aNewTab( name_, td, Table::New);118 SetupNewTable aNewTab("dummy", td, Table::New); 122 119 table_ = Table(aNewTab, Table::Memory, 0); 123 }124 125 std::string SDMemTable::name() const {126 return name_;127 120 } 128 121 -
trunk/src/SDMemTable.h
r21 r22 103 103 virtual void summary() const; 104 104 105 // the (irrelevant) name106 std::string name() const;107 108 105 // write to disk as aips++ table 109 106 void makePersistent(const std::string& filename); … … 122 119 Int nChan() const; 123 120 121 // return the number of rows (integrations) in the table 122 Int nRows() const { return table_.nrow(); } 123 124 124 // return a row as a Masked array, internally converting uChar flags 125 125 // to bool mask … … 128 128 129 129 private: 130 // set up tab elstructure130 // set up table structure 131 131 void setup(); 132 132 // the current cursor into the array
Note:
See TracChangeset
for help on using the changeset viewer.