CARMA C++
GoodIsGreenVisitor.h
1 #ifndef CARMA_UI_RTD_GREENISGOODVISITOR_H
2 #define CARMA_UI_RTD_GREENISGOODVISITOR_H
3 
4 #include <set>
5 #include <string>
6 
7 #include "carma/ui/rtd/common/MonitorTableVisitor.h"
8 //@todo make this derived from ColorVisitor -- mwp
9 
10 
11 namespace carma {
12 namespace ui {
13 namespace rtd {
14 
15 
18 class GoodIsGreenVisitor : public MonitorTableVisitor {
19  public:
20  explicit GoodIsGreenVisitor( );
21 
23 
24  void addToEffectedSet( const monitor::MonitorPoint & mp );
25 
26  void postprocessMonitorCell(
27  const monitor::MonitorPoint & mp,
28  MonitorCell & monitorCell ) const;
29 
30  private:
31  ::std::set< ::std::string > effected_;
32 };
33 
34 
35 } // namespace carma::ui::rtd
36 } // namespace carma::ui
37 } // namespace carma
38 
39 
40 #endif
Abstract base class for a monitor point.
Definition: MonitorPoint.h:68
Visitor that post processes a set of MonitorCell to have green as their good color.
A Cell that displays the current value of a MonitorPoint, with the background color gotten from a sec...
Definition: MonitorCell.h:55