SmartFoxServer 2X C++ API
LogoutRequest.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of LogoutRequest
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __LogoutRequest__
12 #define __LogoutRequest__
13 
14 #include "../Util/Common.h"
15 #include "BaseRequest.h"
16 #include "../Exceptions/SFSValidationError.h"
17 
18 #include <boost/shared_ptr.hpp> // Boost Asio shared pointer
19 
20 #if defined(_MSC_VER)
21 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug
22 #endif
23 #include <list> // STL library: list object
24 using namespace std; // STL library: declare the STL namespace
25 
26 using namespace Sfs2X::Exceptions;
27 
28 namespace Sfs2X {
29 namespace Requests {
30 
37  class DLLImportExport LogoutRequest : public BaseRequest
38  {
39  public:
40 
41  // -------------------------------------------------------------------
42  // Public methods
43  // -------------------------------------------------------------------
44 
65  LogoutRequest();
66 
67  virtual ~LogoutRequest();
68 
69  void Validate(boost::shared_ptr<SmartFox> sfs);
70 
71  // -------------------------------------------------------------------
72  // Public members
73  // -------------------------------------------------------------------
74 
75  static boost::shared_ptr<string> KEY_ZONE_NAME;
76 
77  protected:
78 
79  // -------------------------------------------------------------------
80  // Protected methods
81  // -------------------------------------------------------------------
82 
83  // -------------------------------------------------------------------
84  // Protected members
85  // -------------------------------------------------------------------
86 
87  private:
88 
89  // -------------------------------------------------------------------
90  // Private methods
91  // -------------------------------------------------------------------
92 
93  // -------------------------------------------------------------------
94  // Private members
95  // -------------------------------------------------------------------
96  };
97 
98 } // namespace Requests
99 } // namespace Sfs2X
100 
101 #endif
Definition: SFSCodecError.cpp:14
STL namespace.
Definition: SmartFox.cpp:24
Log out of the current Zone
Definition: LogoutRequest.h:37