Drive Engine  1.0.0
Plateforme de reconstruction 3D
DriveEngine::DefaultLogicalParameter Class Reference
Inheritance diagram for DriveEngine::DefaultLogicalParameter:
DriveEngine::ILogicalParameter DriveEngine::IParameter DriveEngine::IDatatype IExportable

Public Member Functions

 CONSTRUCTOR_H (ILogicalParameter, DefaultLogicalParameter)
 
 CONSTRUCTOR_H (ILogicalParameter, DefaultLogicalParameter, const char *name)
 
 CONSTRUCTOR_H (ILogicalParameter, DefaultLogicalParameter, const char *name, bool initialValue)
 
 DESTRUCTOR_H (DefaultLogicalParameter)
 
virtual void SetName (const char *name)
 Sets the name of the parameter. More...
 
virtual const char * GetName () const
 Gets the name of the parameter. More...
 
virtual const char * GetType () const
 Gets the type of the parameter. More...
 
virtual void SetValueByString (const char *value)
 Sets the value of the parameter by a string. More...
 
virtual const char * GetValueByString ()
 Gets the value of the parameter by a string. More...
 
virtual void SetValue (bool value)
 Sets the parameter value. More...
 
virtual bool GetValue () const
 Gets the parameter value. More...
 
- Public Member Functions inherited from IExportable
virtual void Delete () const =0
 Deletes the current object. Needed for memory management. More...
 

Member Function Documentation

const char * DefaultLogicalParameter::GetName ( ) const
virtual

Gets the name of the parameter.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Returns
The parameter name.

Implements DriveEngine::IParameter.

const char * DefaultLogicalParameter::GetType ( ) const
virtual

Gets the type of the parameter.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Returns
Returns the type.

Implements DriveEngine::IParameter.

bool DefaultLogicalParameter::GetValue ( ) const
virtual

Gets the parameter value.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Returns
The logical parameter value.

Implements DriveEngine::ILogicalParameter.

const char * DefaultLogicalParameter::GetValueByString ( )
virtual

Gets the value of the parameter by a string.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Returns
Returns the value by string. If no value was set it returns an empty string

Implements DriveEngine::IParameter.

void DefaultLogicalParameter::SetName ( const char *  name)
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.

Parameters
nameThe parameter name.

Implements DriveEngine::IParameter.

void DefaultLogicalParameter::SetValue ( bool  value)
virtual

Sets the parameter value.

If the value is null, the parameter value will be set to false.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Parameters
valueThe new logical parameter value.

Implements DriveEngine::ILogicalParameter.

void DefaultLogicalParameter::SetValueByString ( const char *  value)
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.

Parameters
valueThe parameter name.

Implements DriveEngine::IParameter.


The documentation for this class was generated from the following files: