
VisualBuffer configurator. More...
#include <Neuro/VisualBuffer.H>


Public Member Functions | |
| VisualBufferConfigurator (OptionManager &mgr, const std::string &descrName="Visual Buffer Configurator", const std::string &tagName="VisualBufferConfigurator") | |
| Constructor. | |
| virtual | ~VisualBufferConfigurator () |
| destructor | |
| nub::ref< VisualBuffer > | getVB () const |
| Get the chosen VB. | |
Protected Member Functions | |
| virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
| Intercept people changing our ModelParam. | |
Protected Attributes | |
| OModelParam< std::string > | itsVBtype |
| type of buffer | |
VisualBuffer configurator.
This will export the --vb-type=XX command-line option and will instantiate a VisualBuffer of the desired type as the option gets assigned a value. As this happens, new options may become available in the command-line. To see them, use --help AFTER you have chosen the type to use. The current VB may be retrieved using getVB().
Definition at line 93 of file VisualBuffer.H.
| VisualBufferConfigurator::VisualBufferConfigurator | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "Visual Buffer Configurator", |
|||
| const std::string & | tagName = "VisualBufferConfigurator" | |||
| ) |
Constructor.
Definition at line 78 of file VisualBuffer.C.
References ModelComponent::addSubComponent().
| VisualBufferConfigurator::~VisualBufferConfigurator | ( | ) | [virtual] |
destructor
Definition at line 89 of file VisualBuffer.C.
| nub::ref< VisualBuffer > VisualBufferConfigurator::getVB | ( | ) | const |
Get the chosen VB.
You should call this during start() of the ModelComponent that needs the VB. NOTE: this will never return a null pointer (since it's a nub::ref rather than a nub::soft_ref), but it may return a "stub" object (e.g. VisualBufferStub).
Definition at line 93 of file VisualBuffer.C.
| void VisualBufferConfigurator::paramChanged | ( | ModelParamBase *const | param, | |
| const bool | valueChanged, | |||
| ParamClient::ChangeStatus * | status | |||
| ) | [protected, virtual] |
Intercept people changing our ModelParam.
See ModelComponent.H; as parsing the command-line or reading a config file sets our name, we'll also here instantiate a buffer of the proper type (and export its options)
Reimplemented from ModelComponent.
Definition at line 99 of file VisualBuffer.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsVBtype, MC_RECURSE, ModelComponent::removeSubComponent(), and nub::ref< T >::reset().
OModelParam<std::string> VisualBufferConfigurator::itsVBtype [protected] |
1.6.3