libiqxmlrpc  0.12.4
 All Classes Namespaces Files Functions Typedefs Enumerations
response_parser.h
1 // Libiqxmlrpc - an object-oriented XML-RPC solution.
2 // Copyright (C) 2011 Anton Dedov
3 
4 #ifndef _iqxmlrpc_response_parser_h_
5 #define _iqxmlrpc_response_parser_h_
6 
7 #include <boost/optional.hpp>
8 #include "value.h"
9 #include "parser2.h"
10 #include "response.h"
11 
12 namespace iqxmlrpc {
13 
15 public:
17 
18  Response
19  get();
20 
21 private:
22  virtual void
23  do_visit_element(const std::string&);
24 
25  void
26  parse_ok();
27 
28  void
29  parse_fault();
30 
31  StateMachine state_;
32  boost::optional<Value> ok_;
33  int fault_code_;
34  boost::optional<std::string> fault_str_;
35 };
36 
37 } // namespace iqxmlrpc
38 
39 #endif