


Public Member Functions | |
| SimEventQueueConfigurator (OptionManager &mgr, const std::string &descrName="SimEvent Queue Configurator", const std::string &tagName="SimEventQueueConfigurator") | |
| Constructor. | |
| virtual | ~SimEventQueueConfigurator () |
| destructor | |
| nub::ref< SimEventQueue > | getQ () const |
| Get the chosen SimEventQueue. | |
| virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
| Intercept people changing our itsSEQname ModelParam. | |
Protected Attributes | |
| OModelParam< std::string > | itsSEQname |
| Type of queue. | |
Definition at line 45 of file SimEventQueueConfigurator.H.
| SimEventQueueConfigurator::SimEventQueueConfigurator | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "SimEvent Queue Configurator", |
|||
| const std::string & | tagName = "SimEventQueueConfigurator" | |||
| ) |
Constructor.
Definition at line 55 of file SimEventQueueConfigurator.C.
References ModelComponent::addSubComponent().
| SimEventQueueConfigurator::~SimEventQueueConfigurator | ( | ) | [virtual] |
destructor
Definition at line 66 of file SimEventQueueConfigurator.C.
| nub::ref< SimEventQueue > SimEventQueueConfigurator::getQ | ( | ) | const |
Get the chosen SimEventQueue.
You should call this during start() of the ModelComponent that needs the queue. CAUTION: this may be a rutz::shared_ptr(NULL) if no queue has been chosen.
Definition at line 70 of file SimEventQueueConfigurator.C.
| void SimEventQueueConfigurator::paramChanged | ( | ModelParamBase *const | param, | |
| const bool | valueChanged, | |||
| ParamClient::ChangeStatus * | status | |||
| ) | [virtual] |
Intercept people changing our itsSEQname ModelParam.
See ModelComponent.H; as parsing the command-line or reading a config file sets our name, we'll also here instantiate a queue of the proper type (and export its options)
Reimplemented from ModelComponent.
Definition at line 75 of file SimEventQueueConfigurator.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsSEQname, MC_RECURSE, ModelComponent::removeSubComponent(), and nub::ref< T >::reset().
OModelParam<std::string> SimEventQueueConfigurator::itsSEQname [protected] |
Type of queue.
Definition at line 73 of file SimEventQueueConfigurator.H.
Referenced by paramChanged().
1.6.3