Rudiments

Public Member Functions | Protected Member Functions | List of all members
jsonsax Class Reference

Inherits sax.

Inherited by jsondom.

## Public Member Functions
| jsonsax ()
virtual | ~jsonsax ()
Public Member Functions inherited from sax
| sax ()
virtual | ~sax ()
virtual bool | parseFile (const char *filename)
virtual bool | parseString (const char *string)
const char * | getError ()

## Protected Member Functions
virtual bool | objectStart ()
virtual bool | memberStart ()
virtual bool | memberName (const char *name)
virtual bool | valueStart ()
virtual bool | stringValue (const char *value)
virtual bool | numberValue (const char *value)
virtual bool | trueValue ()
virtual bool | falseValue ()
virtual bool | nullValue ()
virtual bool | arrayStart ()
virtual bool | arrayEnd ()
virtual bool | valueEnd ()
virtual bool | memberEnd ()
virtual bool | objectEnd ()

## Detailed Description

The jsonsax class is a base class for an SAX-style parser for JSON data. To use this class, you should create a class that inherits from it and implements its protected virtual methods.

## Constructor & Destructor Documentation

## ◆ jsonsax()

jsonsax::jsonsax | ( |  | ) |

Creates an instance of the jsonsax class.

## ◆ ~jsonsax()

virtual jsonsax::~jsonsax | ( |  | ) |
| virtual

Deletes this instance of the jsonsax class.

## Member Function Documentation

## ◆ arrayEnd()

virtual bool jsonsax::arrayEnd | ( |  | ) |
| protected virtual

Gets called when an array end is parsed.

Reimplemented in jsondom.

## ◆ arrayStart()

virtual bool jsonsax::arrayStart | ( |  | ) |
| protected virtual

Gets called when an array start is parsed.

Reimplemented in jsondom.

## ◆ falseValue()

virtual bool jsonsax::falseValue | ( |  | ) |
| protected virtual

Gets called when a false value is parsed.

Reimplemented in jsondom.

## ◆ memberEnd()

virtual bool jsonsax::memberEnd | ( |  | ) |
| protected virtual

Gets called when a member end is parsed.

Reimplemented in jsondom.

## ◆ memberName()

virtual bool jsonsax::memberName | ( | const char * | name | ) |
| protected virtual

Gets called when a member name is parsed.

Reimplemented in jsondom.

## ◆ memberStart()

virtual bool jsonsax::memberStart | ( |  | ) |
| protected virtual

Gets called when a member start is parsed.

Reimplemented in jsondom.

## ◆ nullValue()

virtual bool jsonsax::nullValue | ( |  | ) |
| protected virtual

Gets called when a null value is parsed.

Reimplemented in jsondom.

## ◆ numberValue()

virtual bool jsonsax::numberValue | ( | const char * | value | ) |
| protected virtual

Gets called when a number value is parsed.

Reimplemented in jsondom.

## ◆ objectEnd()

virtual bool jsonsax::objectEnd | ( |  | ) |
| protected virtual

Gets called when an object end is parsed.

Reimplemented in jsondom.

## ◆ objectStart()

virtual bool jsonsax::objectStart | ( |  | ) |
| protected virtual

Gets called when an object start is parsed.

Reimplemented in jsondom.

## ◆ stringValue()

virtual bool jsonsax::stringValue | ( | const char * | value | ) |
| protected virtual

Gets called when a string value is parsed.

Reimplemented in jsondom.

## ◆ trueValue()

virtual bool jsonsax::trueValue | ( |  | ) |
| protected virtual

Gets called when a true value is parsed.

Reimplemented in jsondom.

## ◆ valueEnd()

virtual bool jsonsax::valueEnd | ( |  | ) |
| protected virtual

Gets called when an value end is parsed.

Reimplemented in jsondom.

## ◆ valueStart()

virtual bool jsonsax::valueStart | ( |  | ) |
| protected virtual

Gets called when a value start is parsed.

Reimplemented in jsondom.