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 incompatible data type exceptions
Definition jaula_bad_data_type.h:53
Base class for handling values.
Definition jaula_value.h:53
virtual void set(Value const &origin)
Copies the contents of one instance into another.
Definition jaula_value.cc:61
ValueType getType(void) const
Retrieves the value type for the instance.
Definition jaula_value.cc:56
virtual ~Value()
Destructor.
Definition jaula_value.cc:53
ValueType
Enumeration of available value types.
Definition jaula_value.h:60
@ TYPE_STRING
Definition jaula_value.h:66
@ TYPE_BOOLEAN
Definition jaula_value.h:64
@ TYPE_NUMBER_INT
Definition jaula_value.h:70
@ TYPE_NULL
Definition jaula_value.h:62
@ TYPE_NUMBER
Definition jaula_value.h:68
@ TYPE_ARRAY
Definition jaula_value.h:72
static Value * duplicate(Value const &orig)
Creates a duplicate of a value.
Definition jaula_value.cc:85
virtual void repr(std::ostream &ostr) const =0
Represents the instance in a stream.
ValueType Type_
Container for error code.
Definition jaula_value.h:168
Value & operator=(Value const &orig)
Assignment operator.
Definition jaula_value.cc:69
std::ostream & operator<<(std::ostream &ostr, JAULA::Value const &val)
Insertion operator extension for values.
Definition jaula_value.cc:157
Namespace for all library definitions.
Definition jaula.h:439