CARMA C++
RegisterSet.h
Go to the documentation of this file.
1 #ifndef SZA_UTIL_REGISTERSET_H
2 #define SZA_UTIL_REGISTERSET_H
3 
12 
13 #include "carma/szaarrayutils/regset.h"
14 
15 namespace sza {
16  namespace util {
17 
18  // Wrapper class around sza::array::RegSet for managing sets of
19  // registers
20 
21  class RegisterSet {
22  public:
23 
27  RegisterSet(ArrayMap* arrayMap=NULL, bool archivedOnly_=false);
28 
32  virtual ~RegisterSet();
33 
37  void addRegister(RegDescription& desc);
38  void addRegister(RegDescription* desc);
39 
43  void addRegisters(std::vector<RegDescription>& regs);
44 
48  inline RegSet* regSet() {
49  return regSet_;
50  }
51 
55  bool operator==(RegisterSet& regSet);
56 
60  void operator=(RegisterSet const& registerSet);
61 
65  void reset();
66 
67  inline bool archivedOnly() {
68  return archivedOnly_;
69  }
70 
71  private:
72 
73  // An array map
74 
75  ArrayMapBase arrayMap_;
76 
77  RegSet* regSet_;
78 
79  bool archivedOnly_;
80 
81  }; // End class RegisterSet
82 
83  } // End namespace util
84 } // End namespace sza
85 
86 
87 
88 #endif // End #ifndef SZA_UTIL_REGISTERSET_H
Tagged: Wed Oct 6 11:04:54 PDT 2004.