From 57b46d5123084a42a2936e9014a43115d0dc070f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 10 Jul 2012 01:42:42 +0900 Subject: Added streaming parser for structured data format. Added JSON streaming parser. Note that currently JSON parser ignores frac and exp parts of number construct. --- src/ValueBaseStructParserState.h | 57 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/ValueBaseStructParserState.h (limited to 'src/ValueBaseStructParserState.h') diff --git a/src/ValueBaseStructParserState.h b/src/ValueBaseStructParserState.h new file mode 100644 index 00000000..9f00050e --- /dev/null +++ b/src/ValueBaseStructParserState.h @@ -0,0 +1,57 @@ +/* */ +#ifndef D_VALUE_BASE_STRUCT_PARSER_STATE_H +#define D_VALUE_BASE_STRUCT_PARSER_STATE_H + +#include "common.h" + +namespace aria2 { + +class ValueBaseStructParserStateMachine; + +class ValueBaseStructParserState { +public: + virtual ~ValueBaseStructParserState() {} + + virtual void beginElement(ValueBaseStructParserStateMachine* psm, + int elementType) = 0; + + virtual void endElement(ValueBaseStructParserStateMachine* psm, + int elementType) = 0; +}; + +} // namespace aria2 + +#endif // D_VALUE_BASE_STRUCT_PARSER_STATE_H -- cgit