jaula API Reference
version 1.4.0
|
29 #ifndef _JAULA_VALUE_H_
30 #define _JAULA_VALUE_H_
32 #include <jaula/jaula_bad_data_type.h>
99 virtual void repr(std::ostream &ostr)
const = 0;
Class for handling object values.
Definition: jaula_value_object.h:54
bool getData(void) const
Retrieves the value contained by the instance.
Definition: jaula_value_boolean.cc:50
double getData(void) const
Retrieves the value contained by the instance.
Definition: jaula_value_number.cc:50
Class for handling numeric values.
Definition: jaula_value_number.h:51
ValueType
Enumeration of available value types.
Definition: jaula_value.h:59
@ TYPE_NUMBER
Definition: jaula_value.h:68
std::ostream & operator<<(std::ostream &ostr, JAULA::Value const &val)
Insertion operator extension for values.
Definition: jaula_value.cc:157
Base class for error handling exceptions.
Definition: jaula_exception.h:53
ValueType Type_
Container for error code.
Definition: jaula_value.h:168
const dataType & getData(void) const
Retrieves the map of values contained by the instance.
Definition: jaula_value_object.cc:61
long getData(void) const
Retrieves the value contained by the instance.
Definition: jaula_value_number_int.cc:49
static Value * duplicate(Value const &orig)
Creates a duplicate of a value.
Definition: jaula_value.cc:85
@ TYPE_NULL
Definition: jaula_value.h:62
Class for handling boolean values.
Definition: jaula_value_boolean.h:51
@ TYPE_BOOLEAN
Definition: jaula_value.h:64
Namespace for all library definitions.
Definition: jaula.h:438
virtual void set(Value const &origin)
Copies the contents of one instance into another.
Definition: jaula_value.cc:61
const dataType & getData(void) const
Retrieves the array of values contained by the instance.
Definition: jaula_value_array.cc:61
void addOrigin(std::string const &origin)
Attachs a new origin after the existing ones.
Definition: jaula_exception.cc:144
virtual void repr(std::ostream &ostr) const =0
Represents the instance in a stream.
Base class for handling values.
Definition: jaula_value.h:52
Value(ValueType Type)
Constructor.
Definition: jaula_value.cc:150
@ TYPE_STRING
Definition: jaula_value.h:66
Value & operator=(Value const &orig)
Assignment operator.
Definition: jaula_value.cc:69
const std::string & getData(void) const
Retrieves the value contained by the instance.
Definition: jaula_value_string.cc:59
@ TYPE_NUMBER_INT
Definition: jaula_value.h:70
Class for handling array values.
Definition: jaula_value_array.h:53
class for incompatible data type exceptions
Definition: jaula_bad_data_type.h:52
Class for handling numeric (int) values.
Definition: jaula_value_number_int.h:52
class for handling null values
Definition: jaula_value_null.h:50
Class for handling numeric values.
Definition: jaula_value_string.h:51
virtual ~Value()
Destructor.
Definition: jaula_value.cc:53
@ TYPE_ARRAY
Definition: jaula_value.h:72
ValueType getType(void) const
Retrieves the value type for the instance.
Definition: jaula_value.cc:56
Copyright (c) 2007, 2008, 2009 Kombo Morongo.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU Free Documentation License".
API Reference Generated for jaula by