Changeset 850 for trunk/src/STSelector.h


Ignore:
Timestamp:
02/28/06 10:49:29 (18 years ago)
Author:
mar637
Message:

added string map, moved map to int map added pattern based name search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STSelector.h

    r842 r850  
    4141  void setPolarizations(const std::vector<int>& pols);
    4242  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);
    4445
    4546  std::vector<int> getScans();
     
    5253  casa::Table operator()(const casa::Table& tab) { return apply(tab); };
    5354
    54   void reset() { selections_.clear(); taql_ = "";};
     55  void reset() { intselections_.clear();stringselections_.clear(); taql_ = "";};
    5556
    5657  bool empty() const;
     
    5859  std::string print();
    5960
     61protected:
     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
    6068private:
    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;
    6671  // has to be mutable, as to stl limitations
    67   mutable idmap selections_;
     72  mutable intidmap intselections_;
     73  mutable stringidmap stringselections_;
    6874  std::string taql_;
    6975};
Note: See TracChangeset for help on using the changeset viewer.