Logo Search packages:      
Sourcecode: jaula version File versions

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

#include <jaula_value_array.h>

Inheritance diagram for JAULA::Value_Array:

JAULA::Value_Complex JAULA::Value

List of all members.

Detailed Description

Class for handling array values.

This class is a container for JSON arrays
Kombo Morongo <morongo666@gmail.com>

Definition at line 53 of file jaula_value_array.h.

Public Types

typedef std::list< Value * > dataType
 Data type for value contents.
enum  ValueType {
 Enumeration of available value types. More...

Public Member Functions

void addItem (Value const &item)
 Appends one item to the array.
virtual void clear (void)
 Empties the contents of an instance.
virtual bool empty (void) const
 True if the instance is empty.
dataType const & getData (void) const
 Retrieves the array of values contained by the instance.
ValueType getType (void) const
 Retrieves the value type for the instance.
virtual void repr (std::ostream &ostr) const
 Represents the instance in a stream.
virtual void set (Value const &origin) throw (Bad_Data_Type)
 Copies the contents of one instance into another.
void set (dataType const &data)
 Establishes the contents of the instance.
virtual size_t size (void) const
 Number of elements contained.
 Value_Array (dataType const &data)
 Data Constructor.
 Value_Array (void)
 Default Constructor.
virtual ~Value_Array ()

Static Public Member Functions

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

Private Attributes

dataType data_
 Container to hold the value itself.

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

Generated by  Doxygen 1.6.0   Back to index