torc-master
|
#include <Value.hpp>
Data Structures | |
class | MiNoMax |
class | Number |
class | Point |
Public Types | |
enum | Type { eValueTypeUndefined, eValueTypeBoolean, eValueTypeInteger, eValueTypeMiNoMax, eValueTypeNumber, eValueTypePoint, eValueTypeString } |
typedef bool | Boolean |
typedef int32_t | Integer |
typedef std::string | String |
Public Member Functions | |
Value () | |
Value (Type type) | |
template<typename _ValueType > | |
Value (Type type, const _ValueType &inSource) | |
~Value () throw () | |
Value (const Value &inSource) | |
Value & | operator= (const Value &inSource) |
template<typename _ValueType > | |
_ValueType | get () const throw (Error) |
template<typename _ValueType > | |
void | set (const _ValueType &inSource) throw (Error) |
const Type | getType () const |
void | setType (const Type &inSource) |
const bool | getIsSet () const |
void | setIsSet (const bool &inSource) |
Private Attributes | |
Type | mType |
boost::variant< Value::Boolean, Value::Integer, Value::Number, Value::MiNoMax, Value::Point, Value::String > | mValue |
bool | mIsSet |
Represents a Value in EDIF. Values are used in different regions in EDIF such as in properties, parameters etc.
typedef bool torc::generic::Value::Boolean |
typedef int32_t torc::generic::Value::Integer |
typedef std::string torc::generic::Value::String |
torc::generic::Value::Value | ( | ) |
Definition at line 194 of file Value.cpp.
torc::generic::Value::Value | ( | Value::Type | type | ) |
Definition at line 196 of file Value.cpp.
torc::generic::Value::Value | ( | Value::Type | type, |
const _ValueType & | inSource | ||
) |
Definition at line 361 of file Value.hpp.
torc::generic::Value::Value | ( | const Value & | inSource | ) |
Definition at line 200 of file Value.cpp.
_ValueType torc::generic::Value::get | ( | ) | const | |
throw | ( | Error | ||
) |
Get the inSource stored in this object.
Error | The stored an requested types are incompatible. |
Definition at line 386 of file Value.hpp.
|
inline |
|
inline |
Definition at line 203 of file Value.cpp.
void torc::generic::Value::set | ( | const _ValueType & | inSource | ) | |
throw | ( | Error | |||
) |
Set a inSource object.
[in] | inSource | The inSource according to the specified type. |
Error | The requested type is wrong. |
Definition at line 373 of file Value.hpp.
void torc::generic::Value::setIsSet | ( | const bool & | inSource | ) |
Set whether this object is defined with a inSource, or is undefined.
[in] | inSource | True if initialized. |
false* Set whether this object is defined with a inSource, or is undefined.
[in] | inSource | True if initialized. |
void torc::generic::Value::setType | ( | const Type & | inSource | ) |
Get the type of inSource stored in this object.
|
private |