The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CharReader Class Reference

Inheritance diagram for CharReader:

List of all members.


Detailed Description

Interface for reading JSON from a char array.

Public Member Functions

virtual ~CharReader ()
virtual bool parse (char const *beginDoc, char const *endDoc, Value *root, std::string *errs)=0
virtual ~CharReader ()
virtual bool parse (char const *beginDoc, char const *endDoc, Value *root, std::string *errs)=0

Classes

class  Factory

Constructor & Destructor Documentation

virtual ~CharReader (  )  [inline, virtual]

virtual ~CharReader (  )  [inline, virtual]


Member Function Documentation

virtual bool parse ( char const *  beginDoc,
char const *  endDoc,
Value root,
std::string *  errs 
) [pure virtual]

Read a Value from a JSON document. The document must be a UTF-8 encoded string containing the document to read.

Parameters:
beginDoc Pointer on the beginning of the UTF-8 encoded string of the document to read.
endDoc Pointer on the end of the UTF-8 encoded string of the document to read. Must be >= beginDoc.
root [out] Contains the root value of the document if it was successfully parsed.
errs [out] Formatted error messages (if not NULL) a user friendly string that lists errors in the parsed document.
Returns:
true if the document was successfully parsed, false if an error occurred.

virtual bool parse ( char const *  beginDoc,
char const *  endDoc,
Value root,
std::string *  errs 
) [pure virtual]

Read a Value from a JSON document. The document must be a UTF-8 encoded string containing the document to read.

Parameters:
beginDoc Pointer on the beginning of the UTF-8 encoded string of the document to read.
endDoc Pointer on the end of the UTF-8 encoded string of the document to read. Must be >= beginDoc.
root [out] Contains the root value of the document if it was successfully parsed.
errs [out] Formatted error messages (if not NULL) a user friendly string that lists errors in the parsed document.
Returns:
true if the document was successfully parsed, false if an error occurred.


Generated on Sun Sep 12 19:11:59 2021 for The Server Framework - v7.4 by doxygen 1.5.3