![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
GurlsOption is an abstraction of a generic `option', which is widely used within the GURLS++ package to store either numeric parameters necessary to configure specific algorigms or sequences of strings holding the names of the specific procedures that have to be performed. More...
#include <options.h>
Public Member Functions | |
virtual const std::type_info & | getDataID () |
Returns the identifier of the option type. | |
OptTypes | getType () const |
Returns the option type. | |
GurlsOption (OptTypes t) | |
Constructor from an option type. | |
virtual bool | isA (OptTypes id) const |
Checks if the option has the given type. | |
virtual std::ostream & | operator<< (std::ostream &os) const =0 |
Writes the option to a stream. | |
virtual | ~GurlsOption () |
Destructor. | |
Protected Attributes | |
OptTypes | type |
Option type. | |
Friends | |
GURLS_EXPORT std::ostream & | operator<< (std::ostream &os, const GurlsOption &opt) |
Writes an option to a stream. |
The instances of the GurlsOption class hold information about the type (one of the elements in the OptTypes enumeration), while the value related to each specific option is stored using the attributes of the subclasses of GurlsOption.