CARMA C++
SzaRtdUtils.h File Reference

Tagged: Fri Aug 27 14:34:06 PDT 2010. More...

#include "carma/ui/rtd/common/MonitorDisplay.h"
#include "carma/ui/rtd/common/MonitorCell.h"
#include "carma/monitor/MonitorSystem.h"
#include <boost/shared_ptr.hpp>
#include <iostream>

Go to the source code of this file.

Namespaces

module  carma
 IDL for bima Rx Control, inherits from antenna::common::RxControl.
 
 carma::ui::rtd
 User Interface Realtime Display Windows.
 

Macros

#define BINARY_BIT_MAPPED_MP(mp, bit, state1Label, state2Label, state1Color, state2Color)
 
#define BINARY_MAPPED_MP(mp, state1Label, state2Label, state1Color, state2Color)
 
#define BOOLEAN_MAPPED_MP(mp, state1Label, state2Label, state1Color, state2Color)
 
#define CAN_RECEIVED_MP(container)
 
#define GENERIC_COLUMN_FN(fn)   std::vector<SzaRtdUtils::RtdColumn*> (fn)(MonitorDisplay& display)
 
#define GENERIC_ROW_FN(fn)   std::vector<SzaRtdUtils::RtdRow*> (fn)(MonitorDisplay& display)
 
#define SZA_COL_ADD_FN(fn)   std::vector<MonitorCellPtr> (fn)(carma::monitor::MonitorContainer* container, unsigned colWidth)
 
#define SZA_CONTAINER_FN(fn)   carma::monitor::MonitorContainer* (fn)(carma::monitor::SzaSubsystem& subsystem)
 
#define SZA_LABEL_FN(fn)   std::vector<std::string> (fn)()
 
#define SZA_ROW_ADD_FN(fn)   std::vector<MonitorCellPtr> (fn)(carma::monitor::MonitorContainer* container, unsigned colWidth)
 

Detailed Description

Tagged: Fri Aug 27 14:34:06 PDT 2010.

Version
:
Revision:
1.8

,

Date:
2013/11/19 03:41:14
Author
Erik Leitch

Definition in file SzaRtdUtils.h.

Macro Definition Documentation

#define BINARY_BIT_MAPPED_MP (   mp,
  bit,
  state1Label,
  state2Label,
  state1Color,
  state2Color 
)
Value:
SzaRtdUtils::cell_ = MonitorCellMapped::makeCell(colWidth, mp, bit, state1Label, state2Label); \
SzaRtdUtils::colorMap_.clear();\
SzaRtdUtils::colorMap_[state1Label] = state1Color;\
SzaRtdUtils::colorMap_[state2Label] = state2Color;\
SzaRtdUtils::cell_->setColorMap(SzaRtdUtils::colorMap_);\
col.push_back(SzaRtdUtils::cell_);

Definition at line 59 of file SzaRtdUtils.h.

#define BINARY_MAPPED_MP (   mp,
  state1Label,
  state2Label,
  state1Color,
  state2Color 
)
Value:
SzaRtdUtils::cell_ = MonitorCellMapped::makeCell(colWidth, mp, state1Label, state2Label);\
SzaRtdUtils::colorMap_.clear();\
SzaRtdUtils::colorMap_[state1Label] = state1Color;\
SzaRtdUtils::colorMap_[state2Label] = state2Color;\
SzaRtdUtils::cell_->setColorMap(SzaRtdUtils::colorMap_);\
col.push_back(SzaRtdUtils::cell_);

Definition at line 38 of file SzaRtdUtils.h.

#define BOOLEAN_MAPPED_MP (   mp,
  state1Label,
  state2Label,
  state1Color,
  state2Color 
)
Value:
{\
std::map<std::string, std::string> labelMap; \
labelMap["false"] = state1Label;\
labelMap["true"] = state2Label;\
SzaRtdUtils::cell_ = MonitorCellMapped::makeCell(colWidth, mp, labelMap);\
SzaRtdUtils::colorMap_.clear();\
SzaRtdUtils::colorMap_[state1Label] = state1Color;\
SzaRtdUtils::colorMap_[state2Label] = state2Color;\
SzaRtdUtils::cell_->setColorMap(SzaRtdUtils::colorMap_);\
col.push_back(SzaRtdUtils::cell_);\
}

Definition at line 46 of file SzaRtdUtils.h.

#define CAN_RECEIVED_MP (   container)
Value:
SzaRtdUtils::cell_ = MonitorCellMapped::makeCell(colWidth, container->received(), "OFFLINE");\
SzaRtdUtils::colorMap_.clear();\
SzaRtdUtils::colorMap_["OFFLINE"] = RED_CELL_COLOR;\
SzaRtdUtils::cell_->setColorMap(SzaRtdUtils::colorMap_);\
SzaRtdUtils::cell_->setDefaultLabel("ONLINE");\
SzaRtdUtils::cell_->setDefaultColor(GREEN_CELL_COLOR);\
col.push_back(SzaRtdUtils::cell_);

Definition at line 29 of file SzaRtdUtils.h.