Logo Search packages:      
Sourcecode: jaula version File versions

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

#include <jaula_value_string.h>

Inheritance diagram for JAULA::Value_String:

JAULA::Value

List of all members.


Detailed Description

Class for handling numeric values.

This class is a container for JSON numeric values.
Author:
Kombo Morongo <morongo666@gmail.com>

Definition at line 51 of file jaula_value_string.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

std::string const & getData (void) const
 Retrieves the value 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 (std::string const &data)
 Establishes the contents of the instance.
 Value_String (std::string const &data="")
 Constructor.
virtual ~Value_String ()
 Destructor.

Static Public Member Functions

static Valueduplicate (Value const &orig)
 Creates a duplicate of a value.
static void stringRepr (std::ostream &ostr, std::string const &str)
 Represents a string in JSON Notation.

Private Attributes

std::string 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