summaryrefslogtreecommitdiff
path: root/src/XmlRpcRequestParserController.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-19 17:54:54 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-19 17:54:54 +0000
commitcb4e25e4b4a2cfa6349a25586a44c932022e6841 (patch)
tree15c0713df0ca88784a0c95a466e3a846192f290b /src/XmlRpcRequestParserController.h
parent8ba97188ce42be38b5427e9bd70bb7f5ba8238f9 (diff)
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed BDE and bencode
Diffstat (limited to 'src/XmlRpcRequestParserController.h')
-rw-r--r--src/XmlRpcRequestParserController.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/XmlRpcRequestParserController.h b/src/XmlRpcRequestParserController.h
index 2a125bf4..b5c4832e 100644
--- a/src/XmlRpcRequestParserController.h
+++ b/src/XmlRpcRequestParserController.h
@@ -40,7 +40,7 @@
#include <stack>
#include <string>
-#include "BDE.h"
+#include "ValueBase.h"
namespace aria2 {
@@ -50,12 +50,12 @@ class XmlRpcRequestParserController {
private:
struct StateFrame {
- BDE _value;
+ SharedHandle<ValueBase> _value;
std::string _name;
bool validMember() const
{
- return !_value.isNone() && !_name.empty();
+ return !_value.isNull() && !_name.empty();
}
};
@@ -75,17 +75,11 @@ public:
// to p and _currentFrame = p;
void popArrayFrame();
- void setCurrentFrameValue(const BDE& value)
- {
- _currentFrame._value = value;
- }
+ void setCurrentFrameValue(const SharedHandle<ValueBase>& value);
- void setCurrentFrameName(const std::string& name)
- {
- _currentFrame._name = name;
- }
+ void setCurrentFrameName(const std::string& name);
- const BDE& getCurrentFrameValue() const { return _currentFrame._value; }
+ const SharedHandle<ValueBase>& getCurrentFrameValue() const;
void setMethodName(const std::string& methodName)
{