Logo Search packages:      
Sourcecode: jaula version File versions

JAULA::Value Class Reference
[JAULA: JSON Values containers]

#include <jaula_value.h>

Inheritance diagram for JAULA::Value:

JAULA::Value_Boolean JAULA::Value_Complex JAULA::Value_Null JAULA::Value_Number JAULA::Value_Number_Int JAULA::Value_String JAULA::Value_Array JAULA::Value_Object

List of all members.


Detailed Description

Base class for handling values.

This class is the abstract base for all the containers for values according to the JSON specification.
Author:
Kombo Morongo <morongo666@gmail.com>

Definition at line 52 of file jaula_value.h.


Public Types

enum  ValueType {
  TYPE_NULL, TYPE_BOOLEAN, TYPE_STRING, TYPE_NUMBER,
  TYPE_NUMBER_INT, TYPE_ARRAY, TYPE_OBJECT
}
 Enumeration of available value types. More...

Public Member Functions

ValueType getType (void) const
 Retrieves the value type for the instance.
Valueoperator= (Value const &orig) throw (Bad_Data_Type)
 Assignment operator.
virtual void repr (std::ostream &ostr) const =0
 Represents the instance in a stream.
virtual void set (Value const &origin) throw (Bad_Data_Type)
 Copies the contents of one instance into another.
virtual ~Value ()
 Destructor.

Static Public Member Functions

static Valueduplicate (Value const &orig)
 Creates a duplicate of a value.

Protected Member Functions

 Value (ValueType Type)
 Constructor.

Private Attributes

ValueType Type_
 Container for error code.

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

Generated by  Doxygen 1.6.0   Back to index