Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/json/Parser.h>
Public Member Functions | |
virtual | ~Maker (void) |
virtual void | beginObject (void) |
virtual void | endObject (void) |
virtual void | beginArray (void) |
virtual void | endArray (void) |
virtual void | onField (string name) |
virtual void | onNull (void) |
virtual void | onValue (bool value) |
virtual void | onValue (int value) |
virtual void | onValue (double value) |
virtual void | onValue (string value) |
A maker used by a JSON Parser to make a top-level object from a JSON description. During the JSON text parsing, methods of maker are called according to the find entities.
Maker are interfaces that must be overload to provide actual maker from JSON description texts. Any maker method can raise on json::Exception if the JSON text does not match the requirement of the maker.
Called when a new object is started. As a default, raise an error.
Called when a field is found. Notice that calls to this methods are always preceded by a beginObject() and no field called is performed after the matching endObject(). As a default, raise an error.
name | Field name. |
Called when a "null" is found in JSON file. As a default, raise an exception.
Called when a boolean value, "true" or "false", is found in the JSON file. As a default, raise an error.
value | Found value. |
|
virtual |
Called when float value if found. As a default, raise an error.
value | Float value. |
|
virtual |
Called when an integer value is found. As a default, raise an error.
value | Integer value. |
Called when a string is found. As a default, raise an error.
value | String value. |