Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NodeOperator.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * authors: Nguyen Vinh Nghiem
5  * changes: Tomasz Mrugalski <thomson@klub.com.pl>
6  *
7  * released under GNU GPL v2 or later licence
8  *
9  */
10 
11 #ifndef NODEOPERATOR_H_
12 #define NODEOPERATOR_H_
13 #include "Node.h"
14 #include "SmartPtr.h"
15 #include <iostream>
16 
17 class NodeOperator : public Node {
18 public:
20  {
26  };
27 
29  // Construction method for Substring
30  NodeOperator(OperatorType t , SPtr<Node>& lll, int in, int len);
31  // Construction method for Contain
32  NodeOperator(OperatorType t, SPtr<Node>& lll, std::string s );
33  virtual ~NodeOperator();
34  virtual std::string exec(SPtr<TSrvMsg> msg);
35  virtual std::string exec();
36 
37 private :
41 
42  // support substring
43  int Index_;
44  int Length_;
45 
46  // support contain
47  std::string ContainString_;
48 };
49 
50 #endif /* NODEOPERATOR_H_ */
51