CARMA C++
ManualFlag.h
1 /*
2  * Control Subsystem Manual Blank/Flag/Birdie support configuration file
3  * parser.
4  */
5 
6 #ifndef CARMA_CONTROL_MANUALFLAG_H
7 #define CARMA_CONTROL_MANUALFLAG_H
8 
9 #include <carma/monitor/ControlCorrelEnum.h>
10 
11 #include <boost/date_time/posix_time/posix_time.hpp>
12 #include <boost/shared_ptr.hpp>
13 
14 #include <vector>
15 
16 namespace carma {
17 namespace control {
18 
19 struct ManualFlag
20 {
21  typedef carma::monitor::ManualFlagPreferenceMonitorPointEnum MFPrefMPE;
22 
23  // constructor
24  ManualFlag();
25 
26  boost::posix_time::ptime start;
27  boost::posix_time::ptime end;
28  int band;
29  int input1;
30  int input2;
31  MFPrefMPE::MANUALFLAGPREFERENCE preference;
32 };
33 
34 typedef boost::shared_ptr<ManualFlag> ManualFlagPtr;
35 
36 std::vector<ManualFlagPtr> parseManualFlagTable(const std::string &filename, const bool currentOnly = true);
37 
38 } // namespace carma::control
39 } // namespace carma
40 
41 #endif /* CARMA_CONTROL_MANUALFLAG_H */
42 
43 /* vim: set ts=8 sts=8 sw=8 noet tw=92: */