21 #ifndef COMMON_WEB_SCHEMAPARSER_H_
22 #define COMMON_WEB_SCHEMAPARSER_H_
29 #include "common/web/PointerTracker.h"
30 #include "common/web/SchemaErrorLogger.h"
31 #include "common/web/SchemaParseContext.h"
64 void String(
const std::string &value);
65 void Number(uint32_t value);
66 void Number(int32_t value);
67 void Number(uint64_t value);
68 void Number(int64_t value);
71 void Bool(
bool value);
78 void SetError(
const std::string &error);
89 std::string
Error()
const;
106 std::auto_ptr<SchemaDefinitions> m_schema_defs;
107 std::auto_ptr<SchemaParseContext> m_root_context;
109 std::auto_ptr<ValidatorInterface> m_root_validator;
111 std::stack<class SchemaParseContextInterface*> m_context_stack;
116 template <
typename T>
117 void HandleNumber(T t);
123 #endif // COMMON_WEB_SCHEMAPARSER_H_