CARMA C++
MonitorDataIndex.h
Go to the documentation of this file.
1 #ifndef CARMA_DBMS_MONITORDATAINDEX_H
2 #define CARMA_DBMS_MONITORDATAINDEX_H
3 
14 
15 namespace carma {
16 namespace dbms {
17 
22 public:
23 
30  MonitorDataIndex(const MonitorAggregateType& aggType,
31  const MonitorAverageType& avgType,
32  const MonitorDataAreaType& areaType);
33 
39 
40 
41  inline bool operator<(const MonitorDataIndex& rhs) const {
42  return (this->numericIndex_ < rhs.numericIndex_);
43  }
44 
45  inline bool operator>(const MonitorDataIndex& rhs) const {
46  return (this->numericIndex_ > rhs.numericIndex_);
47  }
48 
49  inline bool operator==(const MonitorDataIndex& rhs) const {
50  return (this->numericIndex_ == rhs.numericIndex_);
51  }
52 
57  inline MonitorDataAreaType getAreaType()const { return areaType_; }
58 
63  inline MonitorAverageType getAverageType()const { return avgType_; }
64 
69  inline MonitorAggregateType getAggregateType()const { return aggType_; }
70 
71  inline int getIndex()const{return numericIndex_;}
72 protected:
73  MonitorAggregateType aggType_;
74  MonitorAverageType avgType_;
75  MonitorDataAreaType areaType_;
76  int numericIndex_;
77 };
78 
79 }}
80 #endif
MonitorDataIndex(const MonitorAggregateType &aggType, const MonitorAverageType &avgType, const MonitorDataAreaType &areaType)
constructor
MonitorDataAreaType
type describing a particular set of directories used in writing, loading, and archiving monitor point...
MonitorAggregateType
aggregate data type of the monitor[point,data file, table]
MonitorAggregateType getAggregateType() const
get the aggregate type associated with the index
relationships between the monitor and dbms systems
MonitorAverageType getAverageType() const
get the average type associated with the index
MonitorAverageType
average type of the monitor[point,data file,table]
MonitorDataAreaType getAreaType() const
get the data area type associated with the index
Class for indexing monitor point data areas.