interface of a generic value in the attribute-based data model. More...
#include <attributes.h>
Public Member Functions | |
virtual | ~Value () |
virtual destructor | |
virtual TypeId | type () const =0 |
returns the actual type of this value. | |
virtual Int | int_value () const =0 |
returns this value as an integer. More... | |
virtual String | string_value () const =0 |
returns this value as a string. More... | |
virtual Bool | bool_value () const =0 |
returns this value as a boolean. More... | |
virtual Double | double_value () const =0 |
returns this value as a double. More... | |
interface of a generic value in the attribute-based data model.
This represents a typed value. This is how one could print the value:
|
pure virtual |
returns this value as a boolean.
This method returns this value as a boolean if the actual type (returned by type()) is BOOL. The result is undefined if the actual type is not BOOL.
|
pure virtual |
returns this value as a double.
This method returns this value as a boolean if the actual type (returned by type()) is DOUBLE. The result is undefined if the actual type is not DOUBLE.
|
pure virtual |
returns this value as an integer.
This method returns this value as an integer if the actual type (returned by type()) is INT. The result is undefined if the actual type is not INT.
|
pure virtual |
returns this value as a string.
This method returns this value as a string if the actual type (returned by type()) is STRING. The result is undefined if the actual type is not STRING.