A class to standardize algorithm parameters serialization. More...
#include <AlgorithmParametersSerializer.h>
Public Member Functions | |
template<typename ValueType > | |
bool | addMultivaluedParameter (const std::string &name, const boost::numeric::ublas::matrix< ValueType > &values) |
Add a new multivalued parameter in a matrix form. More... | |
template<typename ValueType , typename KeyType > | |
bool | addMultivaluedParameter (const std::string &name, const std::map< KeyType, ValueType > &values) |
Add a new multivalued parameter. More... | |
bool | addMultivaluedParameter (const std::string &name, const std::vector< std::string > &values) |
Add a new multivalued parameter. More... | |
template<typename ValueType > | |
bool | addMultivaluedParameter (const std::string &name, const std::vector< ValueType > &values) |
Add a new multivalued parameter. More... | |
template<typename ValueType > | |
bool | addMultivaluedParameters (const std::string &name, const std::vector< boost::numeric::ublas::matrix< ValueType > > &values) |
Add sets of new multivalued parameters in a matrix form. More... | |
template<typename ValueType > | |
bool | addMultivaluedParameters (const std::string &name, const std::vector< std::vector< ValueType > > &values) |
Add sets of new multivalued parameters. More... | |
bool | addParameter (const std::string &name, const std::string &value) |
Add a new parameter. More... | |
template<typename ValueType > | |
bool | addParameter (const std::string &name, const ValueType &value) |
Add a new parameter. More... | |
AlgorithmParametersSerializer () | |
AlgorithmParametersSerializer (const AlgorithmParametersSerializer &other) | |
void | getMetaData (std::map< std::string, std::string > &metadata) const |
Returns all serialized parameters formatted for raster metadata. More... | |
AlgorithmParametersSerializer & | operator= (const AlgorithmParametersSerializer &other) |
void | reset () |
Reset to the initial empty state. More... | |
void | setAlgorithmName (const std::string &name) |
Set a non-empty algorithm name. More... | |
~AlgorithmParametersSerializer () | |
Protected Types | |
typedef std::pair< std::string, std::vector< std::string > > | ParsContPairT |
typedef std::multimap< std::string, std::vector< std::string > > | ParsContT |
Protected Member Functions | |
template<typename ValueType > | |
std::string | toString (const std::complex< ValueType > &value) const |
std::string | toString (const std::string &value) const |
template<typename ValueType > | |
std::string | toString (const ValueType &value) const |
Private Attributes | |
std::string | m_algoName |
ParsContT | m_params |
A class to standardize algorithm parameters serialization.
Definition at line 40 of file AlgorithmParametersSerializer.h.
|
protected |
Definition at line 250 of file AlgorithmParametersSerializer.h.
|
protected |
Definition at line 252 of file AlgorithmParametersSerializer.h.
te::rp::AlgorithmParametersSerializer::AlgorithmParametersSerializer | ( | ) |
te::rp::AlgorithmParametersSerializer::AlgorithmParametersSerializer | ( | const AlgorithmParametersSerializer & | other | ) |
te::rp::AlgorithmParametersSerializer::~AlgorithmParametersSerializer | ( | ) |
|
inline |
Add a new multivalued parameter in a matrix form.
name | A new non-empty parameter name. |
value | A new parameter values in a matrix form. |
Definition at line 165 of file AlgorithmParametersSerializer.h.
|
inline |
Add a new multivalued parameter.
name | A new non-empty parameter name. |
value | A new parameter values. |
Definition at line 130 of file AlgorithmParametersSerializer.h.
bool te::rp::AlgorithmParametersSerializer::addMultivaluedParameter | ( | const std::string & | name, |
const std::vector< std::string > & | values | ||
) |
Add a new multivalued parameter.
name | A new non-empty parameter name. |
value | A new parameter values. |
|
inline |
Add a new multivalued parameter.
name | A new non-empty parameter name. |
value | A new parameter values. |
Definition at line 102 of file AlgorithmParametersSerializer.h.
|
inline |
Add sets of new multivalued parameters in a matrix form.
name | A new non-empty parameter name. |
values | Parameter values. |
Definition at line 221 of file AlgorithmParametersSerializer.h.
|
inline |
Add sets of new multivalued parameters.
name | A new non-empty parameter name. |
values | Parameter values. |
Definition at line 198 of file AlgorithmParametersSerializer.h.
bool te::rp::AlgorithmParametersSerializer::addParameter | ( | const std::string & | name, |
const std::string & | value | ||
) |
Add a new parameter.
name | A new non-empty parameter name. |
value | A new parameter value. |
|
inline |
Add a new parameter.
name | A new non-empty parameter name. |
value | A new parameter value. |
Definition at line 74 of file AlgorithmParametersSerializer.h.
void te::rp::AlgorithmParametersSerializer::getMetaData | ( | std::map< std::string, std::string > & | metadata | ) | const |
Returns all serialized parameters formatted for raster metadata.
metadata | The output metadata. |
AlgorithmParametersSerializer & te::rp::AlgorithmParametersSerializer::operator= | ( | const AlgorithmParametersSerializer & | other | ) |
void te::rp::AlgorithmParametersSerializer::reset | ( | ) |
Reset to the initial empty state.
void te::rp::AlgorithmParametersSerializer::setAlgorithmName | ( | const std::string & | name | ) |
Set a non-empty algorithm name.
The | new non-empty algorithm name. |
|
inlineprotected |
Definition at line 255 of file AlgorithmParametersSerializer.h.
|
inlineprotected |
Definition at line 261 of file AlgorithmParametersSerializer.h.
|
inlineprotected |
Definition at line 267 of file AlgorithmParametersSerializer.h.
|
private |
Definition at line 274 of file AlgorithmParametersSerializer.h.
|
private |
Definition at line 276 of file AlgorithmParametersSerializer.h.