26#ifndef __TERRALIB_PROCESS_INTERNAL_SIMPLEDATAPARAMETERVALUE_H
27#define __TERRALIB_PROCESS_INTERNAL_SIMPLEDATAPARAMETERVALUE_H
72 virtual void fromString(
const std::string& strValue)
override;
110 if (absData ==
nullptr)
115 return dynamic_cast<const T*
>(absData);
A base class for values that can be retrieved from the data access module.
Wrapper function used to create taks. Used to avoid C++ to create multiple instances of the factory s...
ParameterValue(int dataType)
< Constructor
virtual ~SimpleDataParameterValueFactory()
te::process::ParameterValue * build() override
Concrete factories (derived from this one) must implement this method in order to create objects.
SimpleDataParameterValueFactory(int dataType)
< Constructor
virtual void setValue(te::dt::AbstractData *absData)
virtual const te::dt::AbstractData * getValue() const
Gets the value associated to this parameter, casting it to the requested type.
std::unique_ptr< te::dt::AbstractData > m_absData
The data of the parameter value.
virtual ParameterValue * clone() const override
Returns the string representation of the parameter value.
const T * getValueAs() const
Sets the value to be associated to this parameter. This object will take the ownership of the given p...
virtual void fromString(const std::string &strValue) override
Gets the value associated to this parameter.
virtual ~SimpleDataParameterValue()
Virtual destructor.
SimpleDataParameterValue(te::dt::AbstractData *absData)
SimpleDataParameterValue(int dataType)
< Constructor
virtual std::string toString() const override
Decodes the given string representation and sets the value into the parameter value object.
Namespace for the Data Type module of TerraLib.
This class represents the value of a parameter.
Configuration flags for TerraLib Process.