#include <LogicTool.h>
Public Types | |
typedef LogicFactory< GenLogic, std::string > | RBCLogicType |
Destructor. | |
Public Member Functions | |
bool | endjob () |
bool | initialise () |
LogicTool () | |
Standard constructor. | |
GenLogic * | retrieve (const std::string &_logic_name) |
virtual | ~LogicTool () |
Public Attributes | |
GenLogic *(* | createlogic )() |
RBCLogicType | m_rbclogic |
Private Attributes | |
std::vector< std::string > | m_logkeys |
email: aosorio@uniandes.edu.co
Definition at line 22 of file LogicTool.h.
typedef LogicFactory< GenLogic, std::string> LogicTool< GenLogic >::RBCLogicType |
Definition at line 27 of file LogicTool.h.
{ m_logkeys.clear(); };
bool LogicTool< GenLogic >::endjob | ( | ) | [inline] |
Definition at line 105 of file LogicTool.h.
Referenced by RBCLogicUnit::~RBCLogicUnit(), and TTULogicUnit::~TTULogicUnit().
{ bool status(true); typename std::vector<std::string>::iterator itr = m_logkeys.begin(); while ( itr != m_logkeys.end() ) { status = status && ( m_rbclogic.Unregister( (*itr) ) ); ++itr; } return status; };
bool LogicTool< GenLogic >::initialise | ( | ) | [inline] |
Definition at line 39 of file LogicTool.h.
Referenced by RBCLogicUnit::initialise(), and TTULogicUnit::initialise().
{ bool status(true); //... std::string key = std::string("ChamberORLogic"); createlogic = (GenLogic * (*)()) &createChamberORLogic; status = m_rbclogic.Register( key , createlogic ); m_logkeys.push_back( key ); key = std::string("TestLogic"); createlogic = (GenLogic * (*)()) &createTestLogic; status = m_rbclogic.Register( key , createlogic ); m_logkeys.push_back( key ); key = std::string("PatternLogic"); createlogic = (GenLogic * (*)()) &createPatternLogic; status = m_rbclogic.Register( key , createlogic ); //... m_logkeys.push_back( key ); key = std::string("TrackingAlg"); createlogic = (GenLogic * (*)()) &createTrackingAlg; status = m_rbclogic.Register( key , createlogic ); m_logkeys.push_back( key ); key = std::string("SectorORLogic"); createlogic = (GenLogic * (*)()) &createSectorORLogic; status = m_rbclogic.Register( key , createlogic ); m_logkeys.push_back( key ); key = std::string("TwoORLogic"); createlogic = (GenLogic * (*)()) &createTwoORLogic; status = m_rbclogic.Register( key , createlogic ); m_logkeys.push_back( key ); key = std::string("WedgeORLogic"); createlogic = (GenLogic * (*)()) &createWedgeORLogic; status = m_rbclogic.Register( key , createlogic ); m_logkeys.push_back( key ); key = std::string("PointingLogic"); createlogic = (GenLogic * (*)()) &createPointingLogic; status = m_rbclogic.Register( key , createlogic ); m_logkeys.push_back( key ); return status; };
GenLogic* LogicTool< GenLogic >::retrieve | ( | const std::string & | _logic_name | ) | [inline] |
Definition at line 98 of file LogicTool.h.
Referenced by RBCLogicUnit::initialise(), and TTULogicUnit::initialise().
{ GenLogic * _obj; _obj = m_rbclogic.CreateObject( _logic_name ); return _obj; };
GenLogic*(* LogicTool< GenLogic >::createlogic)() |
Definition at line 35 of file LogicTool.h.
Referenced by LogicTool< RBCLogic >::initialise().
Definition at line 116 of file LogicTool.h.
Referenced by LogicTool< RBCLogic >::endjob(), LogicTool< RBCLogic >::initialise(), and LogicTool< RBCLogic >::~LogicTool().
RBCLogicType LogicTool< GenLogic >::m_rbclogic |
Definition at line 37 of file LogicTool.h.
Referenced by LogicTool< RBCLogic >::endjob(), LogicTool< RBCLogic >::initialise(), and LogicTool< RBCLogic >::retrieve().