solarpowerlog trunk
IValue Class Reference

#include <IValue.h>

Inheritance diagram for IValue:

List of all members.

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 IValueFactory (const factory_types typedescriptor)

Protected Member Functions

 IValue ()

Protected Attributes

factory_types type

Detailed Description

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.

Definition at line 52 of file IValue.h.


Member Enumeration Documentation

This enumeration specifies the type of the storage. It can be used as parameter for the factory.

Enumerator:
bool_type 

boolean storage

int_type 

integer (signed)

float_type 

float storage

string_type 

string type

Definition at line 58 of file IValue.h.


Constructor & Destructor Documentation

IValue::IValue ( ) [protected]

Definition at line 45 of file IValue.cpp.

IValue::~IValue ( ) [virtual]

Definition at line 97 of file IValue.cpp.


Member Function Documentation

IValue * IValue::Factory ( const factory_types  typedescriptor) [static]

Factory method to generate desired concrete Value

Definition at line 54 of file IValue.cpp.

Here is the call graph for this function:

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 >.


Member Data Documentation

Definition at line 85 of file IValue.h.


The documentation for this class was generated from the following files: