|
solarpowerlog trunk
|
#include <IValue.h>

Public Types | |
| enum | factory_types { bool_type, int_type, float_type, string_type } |
Public Member Functions | |
| virtual factory_types | GetType (void) const |
| virtual | operator std::string ()=0 |
| virtual | ~IValue () |
Static Public Member Functions | |
| static IValue * | Factory (const factory_types typedescriptor) |
Protected Member Functions | |
| IValue () | |
Protected Attributes | |
| factory_types | type |
IValue is the interface to abitrary value storage.
It is supposed to be derived, and the derived class is reponsible for type-correct storage.
In this interface, also the factory is embedded to create the concrete values.
| IValue::IValue | ( | ) | [protected] |
Definition at line 45 of file IValue.cpp.
| IValue::~IValue | ( | ) | [virtual] |
Definition at line 97 of file IValue.cpp.
| IValue * IValue::Factory | ( | const factory_types | typedescriptor | ) | [static] |
Factory method to generate desired concrete Value
Definition at line 54 of file IValue.cpp.

| IValue::factory_types IValue::GetType | ( | void | ) | const [virtual] |
Interface method to check the type of the value
Definition at line 49 of file IValue.cpp.
| virtual IValue::operator std::string | ( | ) | [pure virtual] |
Inteface method for easier transfer to strings.
Implemented in CValue< T >.
factory_types IValue::type [protected] |