Changeset 850 for trunk/src/STSelector.h
- Timestamp:
- 02/28/06 10:49:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STSelector.h
r842 r850 41 41 void setPolarizations(const std::vector<int>& pols); 42 42 void setCycles(const std::vector<int>& cycs); 43 void setTaQL(const std::string& taql); 43 void setName(const std::string&); 44 virtual void setTaQL(const std::string& taql); 44 45 45 46 std::vector<int> getScans(); … … 52 53 casa::Table operator()(const casa::Table& tab) { return apply(tab); }; 53 54 54 void reset() { selections_.clear(); taql_ = "";};55 void reset() { intselections_.clear();stringselections_.clear(); taql_ = "";}; 55 56 56 57 bool empty() const; … … 58 59 std::string print(); 59 60 61 protected: 62 std::vector< int > getint( const std::string& key); 63 std::vector< std::string > getstring( const std::string& key); 64 65 void setint(const std::string& key, const std::vector< int >& val); 66 void setstring(const std::string& key, const std::vector< std::string >& val); 67 60 68 private: 61 // 62 std::vector< int > get( const std::string& key); 63 void set(const std::string& key, const std::vector< int >& val); 64 65 typedef std::map<std::string, std::vector<int> > idmap; 69 typedef std::map<std::string, std::vector<int> > intidmap; 70 typedef std::map<std::string, std::vector<std::string> > stringidmap; 66 71 // has to be mutable, as to stl limitations 67 mutable idmap selections_; 72 mutable intidmap intselections_; 73 mutable stringidmap stringselections_; 68 74 std::string taql_; 69 75 };
Note: See TracChangeset
for help on using the changeset viewer.