Drive Engine
1.0.0
Plateforme de reconstruction 3D
|
The parameter datatype interface. More...
#include <IParameter.h>
Public Member Functions | |
virtual void | SetName (const char *name)=0 |
Sets the name of the parameter. More... | |
virtual const char * | GetName () const =0 |
Gets the name of the parameter. More... | |
virtual const char * | GetType () const =0 |
Gets the type of the parameter. More... | |
virtual void | SetValueByString (const char *value)=0 |
Sets the value of the parameter by a string. More... | |
virtual const char * | GetValueByString ()=0 |
Gets the value of the parameter by a string. More... | |
Public Member Functions inherited from IExportable | |
virtual void | Delete () const =0 |
Deletes the current object. Needed for memory management. More... | |
The parameter datatype interface.
It minimally contain a name and a value.
|
pure virtual |
Gets the name of the parameter.
Exception safety : No-throw guarantee. This member function never throws exceptions.
Implemented in DriveEngine::DefaultIntegerNumberParameter, DriveEngine::DefaultRealNumberParameter, DriveEngine::DefaultLogicalParameter, and DriveEngine::DefaultTextParameter.
|
pure virtual |
Gets the type of the parameter.
Exception safety : No-throw guarantee. This member function never throws exceptions.
Implemented in DriveEngine::DefaultIntegerNumberParameter, DriveEngine::DefaultRealNumberParameter, DriveEngine::DefaultLogicalParameter, and DriveEngine::DefaultTextParameter.
|
pure virtual |
Gets the value of the parameter by a string.
Exception safety : No-throw guarantee. This member function never throws exceptions.
Implemented in DriveEngine::DefaultIntegerNumberParameter, DriveEngine::DefaultRealNumberParameter, DriveEngine::DefaultLogicalParameter, and DriveEngine::DefaultTextParameter.
|
pure virtual |
Sets the name of the parameter.
If the text is null or empty, the name will be an empty string.
Exception safety : No-throw guarantee. This member function never throws exceptions.
name | The parameter name. |
Implemented in DriveEngine::DefaultIntegerNumberParameter, DriveEngine::DefaultRealNumberParameter, DriveEngine::DefaultLogicalParameter, and DriveEngine::DefaultTextParameter.
|
pure virtual |
Sets the value of the parameter by a string.
A string type value will be converted in a concret value in function of the type of parameter.
Exception safety : Strong exception safety. This member function throws exceptions if the argument cannot be converted to a valid value of the parameter.
value | The parameter name. |
Implemented in DriveEngine::DefaultIntegerNumberParameter, DriveEngine::DefaultRealNumberParameter, DriveEngine::DefaultLogicalParameter, and DriveEngine::DefaultTextParameter.