Rudiments
|
#include <jsonsax.h>
Inherits sax.
Inherited by jsondom.
Public Member Functions | |
jsonsax () | |
virtual | ~jsonsax () |
Public Member Functions inherited from sax | |
sax () | |
virtual | ~sax () |
void | setIgnoreHeaderLines (uint64_t lines) |
uint64_t | getIgnoreHeaderLines () |
void | setIgnoreFooterLines (uint64_t lines) |
uint64_t | getIgnoreFooterLines () |
virtual bool | parse (input *in) |
virtual bool | parseFile (const char *filename) |
virtual bool | parseString (const char *string) |
const char * | getError () |
Public Member Functions inherited from object | |
virtual | ~object () |
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 () |
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.
jsonsax::jsonsax | ( | ) |
Creates an instance of the jsonsax class.
|
virtual |
Deletes this instance of the jsonsax class.
Gets called when an array end is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when an array start is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when a false value is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when a member end is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when a member name is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when a member start is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when a null value is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when a number value is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when an object end is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when an object start is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when a string value is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when a true value is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when an value end is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.
Gets called when a value start is parsed.
Returns true on success and false if an error occurred. Parsing stops if this method returns false.
This implementation just returns true by a child class may override this method to do something else.
Reimplemented in jsondom.