SimEventQueueConfigurator Class Reference

Inheritance diagram for SimEventQueueConfigurator:
Inheritance graph
[legend]
Collaboration diagram for SimEventQueueConfigurator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SimEventQueueConfigurator (OptionManager &mgr, const std::string &descrName="SimEvent Queue Configurator", const std::string &tagName="SimEventQueueConfigurator")
 Constructor.
virtual ~SimEventQueueConfigurator ()
 destructor
nub::ref< SimEventQueuegetQ () 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::stringitsSEQname
 Type of queue.

Detailed Description

Definition at line 45 of file SimEventQueueConfigurator.H.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

Type of queue.

Definition at line 73 of file SimEventQueueConfigurator.H.

Referenced by paramChanged().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:48 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3