Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 78 lines (52 sloc) 1.724 kb
a49a023 recommited to svn
highpower authored
1 #ifndef _XSCRIPT_MIST_STATE_PREFIX_NODE_H_
2 #define _XSCRIPT_MIST_STATE_PREFIX_NODE_H_
3
4 #include <cassert>
5 #include <string>
6
cce3ec2 mist xslt extension moved to mist directory
golubtsov authored
7 #include "state_node.h"
a49a023 recommited to svn
highpower authored
8 #include "xscript/state.h"
9
b8d426d changing styleguide :)
highpower authored
10 namespace xscript {
a49a023 recommited to svn
highpower authored
11 class Request;
01b985f bot added to protocol arg. flag bitset added to context
golubtsov authored
12 class Context;
faf6519 encoding param added to setStateByRequestUrlencoded
golubtsov authored
13 class Encoder;
a49a023 recommited to svn
highpower authored
14
b8d426d changing styleguide :)
highpower authored
15 class StatePrefixNode : public StateNode {
a49a023 recommited to svn
highpower authored
16 public:
b8d426d changing styleguide :)
highpower authored
17 StatePrefixNode(const std::string& prefix, const char* type_str, State* state);
a49a023 recommited to svn
highpower authored
18
01921d0 set_state_by_local_args, dump_local_args added to mist
golubtsov authored
19 void setParameter(const char* name, const std::string &val);
20 void setParameter(const char* name, const TypedValue &val);
21 void setParameters(const char* name, const std::vector<std::string> &v);
a49a023 recommited to svn
highpower authored
22
23 private:
b8d426d changing styleguide :)
highpower authored
24 const std::string& prefix_;
25 State* state_;
a49a023 recommited to svn
highpower authored
26 };
27
28
b8d426d changing styleguide :)
highpower authored
29 class StateQueryNode : public StatePrefixNode {
a49a023 recommited to svn
highpower authored
30 public:
b8d426d changing styleguide :)
highpower authored
31 StateQueryNode(const std::string& prefix, State* state);
a49a023 recommited to svn
highpower authored
32
b8d426d changing styleguide :)
highpower authored
33 void build(const std::string& query);
a49a023 recommited to svn
highpower authored
34 };
35
36
b8d426d changing styleguide :)
highpower authored
37 class StateRequestNode : public StatePrefixNode {
a49a023 recommited to svn
highpower authored
38 public:
b8d426d changing styleguide :)
highpower authored
39 StateRequestNode(const std::string& prefix, State* state);
a49a023 recommited to svn
highpower authored
40
faf6519 encoding param added to setStateByRequestUrlencoded
golubtsov authored
41 void build(const Request* req, bool urlencode, Encoder* encoder);
a49a023 recommited to svn
highpower authored
42 };
43
44
b8d426d changing styleguide :)
highpower authored
45 class StateHeadersNode : public StatePrefixNode {
a49a023 recommited to svn
highpower authored
46 public:
b8d426d changing styleguide :)
highpower authored
47 StateHeadersNode(const std::string& prefix, State* state);
a49a023 recommited to svn
highpower authored
48
b8d426d changing styleguide :)
highpower authored
49 void build(const Request* req);
a49a023 recommited to svn
highpower authored
50 };
51
52
b8d426d changing styleguide :)
highpower authored
53 class StateCookiesNode : public StatePrefixNode {
a49a023 recommited to svn
highpower authored
54 public:
b8d426d changing styleguide :)
highpower authored
55 StateCookiesNode(const std::string& prefix, State* state);
a49a023 recommited to svn
highpower authored
56
b8d426d changing styleguide :)
highpower authored
57 void build(const Request* req);
a49a023 recommited to svn
highpower authored
58 };
59
60
b8d426d changing styleguide :)
highpower authored
61 class StateProtocolNode : public StatePrefixNode {
a49a023 recommited to svn
highpower authored
62 public:
b8d426d changing styleguide :)
highpower authored
63 StateProtocolNode(const std::string& prefix, State* state);
a49a023 recommited to svn
highpower authored
64
01b985f bot added to protocol arg. flag bitset added to context
golubtsov authored
65 void build(Context* ctx);
a49a023 recommited to svn
highpower authored
66 };
67
01921d0 set_state_by_local_args, dump_local_args added to mist
golubtsov authored
68 class StateLocalNode : public StatePrefixNode {
69 public:
70 StateLocalNode(const std::string& prefix, State* state);
71
72 void build(const Context* ctx);
73 };
a49a023 recommited to svn
highpower authored
74
75 } // namespace xscript
76
77 #endif // _XSCRIPT_MIST_STATE_PREFIX_NODE_H_
Something went wrong with that request. Please try again.