
#include <Component/OptionManager.H>
Inheritance diagram for OptionManager:

Definition at line 50 of file OptionManager.H.
Public Member Functions | |
| OptionManager () | |
| Default constructor. | |
| virtual | ~OptionManager () |
| Virtual destructor for proper base class destruction. | |
Command-line options | |
| virtual void | requestOption (OptionedModelParam &p, const bool useMyVal=false)=0 |
| ModelComponent objects may request a command-line option here. | |
| virtual void | unRequestOption (OptionedModelParam &p)=0 |
| Request the removal of a param from the command-line options. | |
| virtual void | requestOptionAlias (const ModelOptionDef *def)=0 |
| Users may request model option aliases. | |
| virtual void | setOptionValString (const ModelOptionDef *def, const std::string &val)=0 |
| Set an option value. | |
| virtual std::string | getOptionValString (const ModelOptionDef *def)=0 |
| Get an option value. | |
| virtual bool | isOptionRequested (const ModelOptionDef *def) const =0 |
| Check if anybody has requested the given option. | |
Alternative access to internal options | |
These functions may be useful for alternative methods of displaying the help for command-line options (e.g. in the Qt ModelManagerWizard). | |
| virtual uint | numOptionDefs () const =0 |
| Get the number of ModelOptionDef objects in our list. | |
| virtual uint | getOptionDefs (const ModelOptionDef **arr, uint narr)=0 |
| Get ModelOptionDef objects from our list, up to the size of the given array. | |
| virtual const ModelOptionDef * | findOptionDef (const char *name) const =0 |
| Get the ModelOptionDef for the given name. | |
| virtual bool | isOptionDefUsed (const ModelOptionDef *def) const =0 |
| Query if the given ModelOptionDef is used in this program. | |
|
|
Default constructor.
Definition at line 43 of file OptionManager.C. |
|
|
Virtual destructor for proper base class destruction.
Definition at line 44 of file OptionManager.C. |
|
|
Get the ModelOptionDef for the given name. Aborts if there is no such ModelOptionDef. Implemented in CmdlineOptionManager, and ModelManager. |
|
||||||||||||
|
Get ModelOptionDef objects from our list, up to the size of the given array. Returns the number of array entries that were actually filled with valid ModelOptionDef pointers. Implemented in CmdlineOptionManager, and ModelManager. |
|
|
Get an option value. The value returned here is the value currently held by the ModelManager. This value is updated in three cases: 1) when a new component requests the option using requestOption() with useMyVal true; 2) when setOptionValString() is called, and 3) when the command-line arguments are parsed by ParseCommandLine, if a value for this option has been specified in the command line. If ModelComponent objects modify their local ModelParam values for their local parameter with this name, the value returned here will not be affected. Implemented in CmdlineOptionManager, and ModelManager. Referenced by featureClusterVision< FLOAT >::fCVsetUpfCV(), and SpatialMetrics::paramChanged(). |
|
|
Query if the given ModelOptionDef is used in this program.
Implemented in CmdlineOptionManager, and ModelManager. |
|
|
Check if anybody has requested the given option.
Implemented in CmdlineOptionManager, and ModelManager. |
|
|
Get the number of ModelOptionDef objects in our list.
Implemented in CmdlineOptionManager, and ModelManager. |
|
||||||||||||
|
ModelComponent objects may request a command-line option here.
Implemented in CmdlineOptionManager, and ModelManager. Referenced by ModelComponent::doRequestOption(), and ModelComponent::exportOptions(). |
|
|
Users may request model option aliases.
Implemented in CmdlineOptionManager, and ModelManager. Referenced by ContourChannel::ContourChannel(), IEEE1394grabber::IEEE1394grabber(), REQUEST_OPTIONALIAS_CHANNEL(), REQUEST_OPTIONALIAS_NEURO(), SoxChannel::SoxChannel(), V4Lgrabber::V4Lgrabber(), and XCgrabberFlex::XCgrabberFlex(). |
|
||||||||||||
|
Set an option value. All ModelParam objects associated this ModelOptionDef will be updated with the new value. Will throw a fatal error if the model has been started (see ModelComponent::start()). Implemented in CmdlineOptionManager, and ModelManager. Referenced by GetSaliency::GetSaliency(), TigsInputFrameSeries::paramChanged(), VisualCortexSurprise::paramChanged(), SpatialMetrics::paramChanged(), SpatialMetrics::setFOAradius(), SpatialMetrics::setFoveaRadius(), SimulationViewerCompress::SimulationViewerCompress(), SimulationViewerEyeMvt::SimulationViewerEyeMvt(), SimulationViewerEyeMvt2::SimulationViewerEyeMvt2(), GistEstimatorStd::start1(), GistEstimatorGen::start1(), VisualCortexInt::VisualCortexInt(), and VisualCortexSurprise::VisualCortexSurprise(). |
|
|
Request the removal of a param from the command-line options.
Implemented in CmdlineOptionManager, and ModelManager. Referenced by ModelComponent::unregisterParam(). |
1.4.4