|
|
typedef boost::shared_ptr< Variant > | Handle |
| |
|
|
template<class T > |
| | Variant (const T &default_value) |
| |
|
| Variant (const Variant &variant) |
| |
|
Variant & | operator= (Variant &variant) |
| |
|
template<class T > |
| void | set (const T &value) |
| | Set the value using a typed version of the parameter.
|
| |
| template<class T > |
| bool | get (T &value) |
| |
| template<class T > |
| bool | validate_type () |
| |
| virtual const std::type_info & | internal_type () const |
| |
|
virtual std::string | export_to_string () const |
| | export the contents of the parameter to string
|
| |
| virtual bool | import_from_string (const std::string &str) |
| |
template<class T >
| bool Core::Variant::get |
( |
T & |
value | ) |
|
|
inline |
Get the value from string or typed value. If a typed one is available use that one.
| bool Core::Variant::import_from_string |
( |
const std::string & |
str | ) |
|
|
virtual |
import a parameter from a string. The function returns true if the import succeeded
Implements Core::VariantBase.
| virtual const std::type_info& Core::Variant::internal_type |
( |
| ) |
const |
|
inlinevirtual |
Return a const reference to the type_info object representing the actual type of value currently stored by the Variant object.
Implements Core::VariantBase.
template<class T >
| bool Core::Variant::validate_type |
( |
| ) |
|
|
inline |
Check and convert to a certain type, but do not return the value This function is intended for validating the action by forcing the contained value to be converted to a certain type
The documentation for this class was generated from the following files: