CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DataPointMonitor.h
Go to the documentation of this file.
1 /*
2  * DataPointMonitor.h
3  *
4  * Created on: Nov 19, 2012
5  * Author: aspataru
6  */
7 
8 #ifndef DATAPOINTMONITOR_H_
9 #define DATAPOINTMONITOR_H_
10 
11 #include <vector>
12 #include <string>
13 #include "JsonMonitorable.h"
14 #include "DataPointDefinition.h"
15 #include "LegendItem.h"
16 #include "DataPoint.h"
17 
18 using std::vector;
19 using std::string;
20 
21 namespace jsoncollector {
22 
24 
25 public:
26  DataPointMonitor(const std::vector<JsonMonitorable*>& monitorableVariables,
27  string defPath);
28  virtual ~DataPointMonitor();
29 
30  void snap(DataPoint& outputDataPoint);
31 
32 private:
33 
34  bool isStringMonitorable(string key) const;
35  JsonMonitorable* getVarForName(string name) const;
36 
37  vector<JsonMonitorable*> monitorableVars_;
38  vector<string> toBeMonitored_;
39  vector<JsonMonitorable*> monitoredVars_;
41  string defPath_;
42 
43 };
44 }
45 
46 #endif /* DATAPOINTMONITOR_H_ */
DataPointMonitor(const std::vector< JsonMonitorable * > &monitorableVariables, string defPath)
JsonMonitorable * getVarForName(string name) const
vector< JsonMonitorable * > monitorableVars_
bool isStringMonitorable(string key) const
list key
Definition: combine.py:13
vector< JsonMonitorable * > monitoredVars_
void snap(DataPoint &outputDataPoint)