PROJ C++ API
|
The value of the coordinate operation parameter. More...
#include <coordinateoperation.hpp>
Public Types | |
enum | Type { Type::MEASURE, Type::STRING, Type::INTEGER, Type::BOOLEAN, Type::FILENAME } |
Public Types inherited from osgeo::proj::util::IComparable | |
enum | Criterion { Criterion::STRICT, Criterion::EQUIVALENT } |
Comparison criterion. More... | |
Public Member Functions | |
const Type & | type () PROJ_CONST_DECL |
Returns the type of a parameter value. More... | |
const common::Measure & | value () PROJ_CONST_DECL |
Returns the value as a Measure (assumes type() == Type::MEASURE) More... | |
const std::string & | stringValue () PROJ_CONST_DECL |
Returns the value as a string (assumes type() == Type::STRING) More... | |
const std::string & | valueFile () PROJ_CONST_DECL |
Returns the value as a filename (assumes type() == Type::FILENAME) More... | |
int | integerValue () PROJ_CONST_DECL |
Returns the value as a integer (assumes type() == Type::INTEGER) More... | |
bool | booleanValue () PROJ_CONST_DECL |
Returns the value as a boolean (assumes type() == Type::BOOLEAN) More... | |
bool | isEquivalentTo (const util::IComparable *other, util::IComparable::Criterion criterion=util::IComparable::Criterion::STRICT) const override |
Returns whether an object is equivalent to another one. More... | |
Public Member Functions inherited from osgeo::proj::io::IWKTExportable | |
std::string | exportToWKT (WKTFormatter *formatter) const |
Static Public Member Functions | |
static ParameterValueNNPtr | create (const common::Measure &measureIn) |
Instanciate a ParameterValue from a Measure (i.e. a value associated with a unit) More... | |
static ParameterValueNNPtr | create (const char *stringValueIn) |
Instanciate a ParameterValue from a string value. More... | |
static ParameterValueNNPtr | create (const std::string &stringValueIn) |
Instanciate a ParameterValue from a string value. More... | |
static ParameterValueNNPtr | create (int integerValueIn) |
Instanciate a ParameterValue from a integer value. More... | |
static ParameterValueNNPtr | create (bool booleanValueIn) |
Instanciate a ParameterValue from a boolean value. More... | |
static ParameterValueNNPtr | createFilename (const std::string &stringValueIn) |
Instanciate a ParameterValue from a filename. More... | |
The value of the coordinate operation parameter.
Most parameter values are numeric, but other types of parameter values are possible.
|
strong |
bool osgeo::proj::operation::ParameterValue::booleanValue | ( | ) |
Returns the value as a boolean (assumes type() == Type::BOOLEAN)
|
static |
Instanciate a ParameterValue from a Measure (i.e. a value associated with a unit)
|
static |
Instanciate a ParameterValue from a string value.
|
static |
Instanciate a ParameterValue from a string value.
|
static |
Instanciate a ParameterValue from a integer value.
|
static |
Instanciate a ParameterValue from a boolean value.
|
static |
Instanciate a ParameterValue from a filename.
int osgeo::proj::operation::ParameterValue::integerValue | ( | ) |
Returns the value as a integer (assumes type() == Type::INTEGER)
|
overridevirtual |
Returns whether an object is equivalent to another one.
other | other object to compare to |
criterion | comparaison criterion. |
Implements osgeo::proj::util::IComparable.
const std::string & osgeo::proj::operation::ParameterValue::stringValue | ( | ) |
Returns the value as a string (assumes type() == Type::STRING)
const ParameterValue::Type & osgeo::proj::operation::ParameterValue::type | ( | ) |
Returns the type of a parameter value.
const common::Measure & osgeo::proj::operation::ParameterValue::value | ( | ) |
Returns the value as a Measure (assumes type() == Type::MEASURE)
const std::string & osgeo::proj::operation::ParameterValue::valueFile | ( | ) |
Returns the value as a filename (assumes type() == Type::FILENAME)