te::process::SimpleDataParameterValue Class Reference

#include <SimpleDataParameterValue.h>

Inheritance diagram for te::process::SimpleDataParameterValue:
te::process::ParameterValue

Public Member Functions

virtual ParameterValueclone () const override
 Returns the string representation of the parameter value. More...
 
virtual void fromString (const std::string &strValue) override
 Gets the value associated to this parameter. More...
 
virtual int getDataType () const
 Clones the object. More...
 
virtual const te::dt::AbstractDatagetValue () const
 Gets the value associated to this parameter, casting it to the requested type. More...
 
template<typename T >
const T * getValueAs () const
 Sets the value to be associated to this parameter. This object will take the ownership of the given pointer. More...
 
virtual void setValue (te::dt::AbstractData *absData)
 
 SimpleDataParameterValue (int dataType)
 < Constructor More...
 
 SimpleDataParameterValue (te::dt::AbstractData *absData)
 
virtual std::string toString () const override
 Decodes the given string representation and sets the value into the parameter value object. More...
 
virtual ~SimpleDataParameterValue ()
 Virtual destructor. More...
 

Protected Attributes

std::unique_ptr< te::dt::AbstractDatam_absData
 The data of the parameter value. More...
 
int m_dataType
 The data type of the parameter value. More...
 

Detailed Description

Definition at line 52 of file SimpleDataParameterValue.h.

Constructor & Destructor Documentation

◆ SimpleDataParameterValue() [1/2]

te::process::SimpleDataParameterValue::SimpleDataParameterValue ( int  dataType)
explicit

< Constructor

Constructor

◆ SimpleDataParameterValue() [2/2]

te::process::SimpleDataParameterValue::SimpleDataParameterValue ( te::dt::AbstractData absData)
explicit

◆ ~SimpleDataParameterValue()

virtual te::process::SimpleDataParameterValue::~SimpleDataParameterValue ( )
virtual

Virtual destructor.

Clones the object

Member Function Documentation

◆ clone()

virtual ParameterValue* te::process::SimpleDataParameterValue::clone ( ) const
overridevirtual

Returns the string representation of the parameter value.

Implements te::process::ParameterValue.

◆ fromString()

virtual void te::process::SimpleDataParameterValue::fromString ( const std::string &  strValue)
overridevirtual

Gets the value associated to this parameter.

Implements te::process::ParameterValue.

◆ getDataType()

virtual int te::process::ParameterValue::getDataType ( ) const
virtualinherited

Clones the object.

◆ getValue()

virtual const te::dt::AbstractData* te::process::SimpleDataParameterValue::getValue ( ) const
virtual

Gets the value associated to this parameter, casting it to the requested type.

Referenced by getValueAs().

◆ getValueAs()

template<typename T >
const T * te::process::SimpleDataParameterValue::getValueAs

Sets the value to be associated to this parameter. This object will take the ownership of the given pointer.

Definition at line 107 of file SimpleDataParameterValue.h.

References getValue().

◆ setValue()

virtual void te::process::SimpleDataParameterValue::setValue ( te::dt::AbstractData absData)
virtual

◆ toString()

virtual std::string te::process::SimpleDataParameterValue::toString ( ) const
overridevirtual

Decodes the given string representation and sets the value into the parameter value object.

Implements te::process::ParameterValue.

Member Data Documentation

◆ m_absData

std::unique_ptr<te::dt::AbstractData> te::process::SimpleDataParameterValue::m_absData
protected

The data of the parameter value.

Definition at line 86 of file SimpleDataParameterValue.h.

◆ m_dataType

int te::process::ParameterValue::m_dataType
protectedinherited

The data type of the parameter value.

Definition at line 73 of file ParameterValue.h.


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