summaryrefslogtreecommitdiff
path: root/src/XmlRpcRequestParserController.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-07-10 01:42:42 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-07-10 01:42:42 +0900
commit57b46d5123084a42a2936e9014a43115d0dc070f (patch)
tree2b20f73adab6854856ccd1c63d5aafc1ef05a913 /src/XmlRpcRequestParserController.cc
parentc7131c14fe0b65975a880956ea3569d873305e64 (diff)
Added streaming parser for structured data format.
Added JSON streaming parser. Note that currently JSON parser ignores frac and exp parts of number construct.
Diffstat (limited to 'src/XmlRpcRequestParserController.cc')
-rw-r--r--src/XmlRpcRequestParserController.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/XmlRpcRequestParserController.cc b/src/XmlRpcRequestParserController.cc
index 6c9a543f..957766aa 100644
--- a/src/XmlRpcRequestParserController.cc
+++ b/src/XmlRpcRequestParserController.cc
@@ -92,6 +92,15 @@ XmlRpcRequestParserController::getCurrentFrameValue() const
return currentFrame_.value_;
}
+void XmlRpcRequestParserController::reset()
+{
+ while(!frameStack_.empty()) {
+ frameStack_.pop();
+ }
+ currentFrame_.reset();
+ methodName_.clear();
+}
+
} // namespace rpc
} // namespace aria2