Open Lighting Architecture  Latest Git
Public Member Functions | List of all members
ola::web::SchemaParseContext Class Reference
Inheritance diagram for ola::web::SchemaParseContext:
Inheritance graph
[legend]
Collaboration diagram for ola::web::SchemaParseContext:
Collaboration graph
[legend]

Public Member Functions

 SchemaParseContext (SchemaDefinitions *definitions)
 Create a new SchemaParseContext. More...
 
ValidatorInterfaceGetValidator (SchemaErrorLogger *logger)
 Return the ValidatorInterface for this context. More...
 
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

◆ SchemaParseContext()

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

Create a new SchemaParseContext.

Parameters
definitionsthe SchemaDefinitions cache, ownership is not transferred.

Member Function Documentation

◆ GetValidator()

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: