CARMA C++
MonitorSystemContainer.h
Go to the documentation of this file.
1 
2 #ifndef CARMA_MONITOR_MONITORSYSTEMCONTAINER_H
3 #define CARMA_MONITOR_MONITORSYSTEMCONTAINER_H
4 
19 #include <string>
20 
21 
22 namespace carma {
23  namespace monitor {
24 
25 
32 public:
33 
38  MonitorSystemContainer(const std::string& systemName);
39 
43  virtual ~MonitorSystemContainer() ;
44 
52  virtual bool isCurrent() const = 0;
53 
61  virtual unsigned int read() = 0;
62 
68  virtual bool readNewest() = 0;
69 
76  virtual bool readNewestConditionalCopy() = 0;
77 
85  virtual bool readNewestIfStale();
86 
90  virtual void write() = 0;
91 
95  virtual int getFrameCount() const = 0;
96 
104  bool isActive();
105 
106 
107 private:
108 
109 };
110 
111 
112 
113 } } // End namespace carma::monitor
114 
115 
116 #endif // CARMA_MONITOR_MONITORSYSTEMCONTAINER_H
117 
118 
119 
120 
121 
122 
123 
124 
125 
MonitorSystemContainer(const std::string &systemName)
Constructor base subsystem configuration.
bool isActive()
Checks to see if this system is actively receiving data.
Monitor system container interface definition.
virtual int getFrameCount() const =0
Get the frame count for the last read frame.
virtual bool isCurrent() const =0
Returns true if the IPQ contains data that is current.
virtual ~MonitorSystemContainer()
Destructor.
virtual unsigned int read()=0
Reads oldest unread data from the IPQ into the local set of monitor points.
virtual bool readNewestConditionalCopy()=0
If new data is available it is copied from the queue into the monitor system.
virtual bool readNewestIfStale()
Reads in data from the IPQ into the local set of monitor points if data is stale, that is...
A generic monitor system container base class.
virtual bool readNewest()=0
Reads in the newest data from the IPQ into the local set of monitor points.
A generic monitor system container base class.
virtual void write()=0
Write out the monitor point data values.