SmartFoxServer 2X C++ API
LogicOperator.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of LogicOperator
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __LogicOperator__
12 #define __LogicOperator__
13 
14 #include "../../Util/Common.h"
15 #include <boost/shared_ptr.hpp> // Boost Asio shared pointer
16 
17 #if defined(_MSC_VER)
18 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug
19 #endif
20 #include <string> // STL library: string object
21 using namespace std; // STL library: declare the STL namespace
22 
23 namespace Sfs2X {
24 namespace Entities {
25 namespace Match {
26 
31  class DLLImportExport LogicOperator
32  {
33  public:
34 
35  // -------------------------------------------------------------------
36  // Public methods
37  // -------------------------------------------------------------------
38  LogicOperator(boost::shared_ptr<string> id);
39  LogicOperator(string id);
40  boost::shared_ptr<string> Id();
41 
42  // -------------------------------------------------------------------
43  // Public members
44  // -------------------------------------------------------------------
45  static boost::shared_ptr<LogicOperator> AND;
46  static boost::shared_ptr<LogicOperator> OR;
47 
48  protected:
49 
50  // -------------------------------------------------------------------
51  // Protected methods
52  // -------------------------------------------------------------------
53 
54  // -------------------------------------------------------------------
55  // Protected members
56  // -------------------------------------------------------------------
57 
58  private:
59 
60  // -------------------------------------------------------------------
61  // Private methods
62  // -------------------------------------------------------------------
63 
64  // -------------------------------------------------------------------
65  // Private members
66  // -------------------------------------------------------------------
67  boost::shared_ptr<string> id;
68  };
69 
70 } // namespace Match
71 } // namespace Entities
72 } // namespace Sfs2X
73 
74 #endif
STL namespace.
The LogicOperator is used to concatenate two MatchExpression together using a logical AND / OR operat...
Definition: LogicOperator.h:31
Definition: SmartFox.cpp:24