Open Lighting Architecture  0.9.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::web::SchemaParseContext Class Reference
Inheritance diagram for ola::web::SchemaParseContext:
ola::web::SchemaParseContextInterface

Public Member Functions

 SchemaParseContext (SchemaDefinitions *definitions)
 Create a new SchemaParseContext.
ValidatorInterfaceGetValidator (SchemaErrorLogger *logger)
 Return the ValidatorInterface for this context.
void ObjectKey (SchemaErrorLogger *logger, const std::string &keyword)
void String (SchemaErrorLogger *logger, const std::string &value)
void Number (SchemaErrorLogger *logger, uint32_t value)
void Number (SchemaErrorLogger *logger, int32_t value)
void Number (SchemaErrorLogger *logger, uint64_t value)
void Number (SchemaErrorLogger *logger, int64_t value)
void Number (SchemaErrorLogger *logger, double value)
void Bool (SchemaErrorLogger *logger, bool value)
void Null (SchemaErrorLogger *logger)
SchemaParseContextInterfaceOpenArray (SchemaErrorLogger *logger)
void CloseArray (SchemaErrorLogger *logger)
SchemaParseContextInterfaceOpenObject (SchemaErrorLogger *logger)
void CloseObject (SchemaErrorLogger *logger)

Constructor & Destructor Documentation

ola::web::SchemaParseContext::SchemaParseContext ( SchemaDefinitions definitions)
inlineexplicit

Create a new SchemaParseContext.

Parameters
definitionsthe SchemaDefinitions cache, ownership is not transferred.

Member Function Documentation

ValidatorInterface * ola::web::SchemaParseContext::GetValidator ( SchemaErrorLogger logger)

Return the ValidatorInterface for this context.

Ownership of the ValidatorInterface is transferred to the caller.

Returns
A new ValidatorInterface or NULL if it was not possible to construct a validator.

The documentation for this class was generated from the following files: