SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
ContextManager.h
Go to the documentation of this file.
1 /*
2  * SWC-DB© Copyright since 2019 Alex Kashirin <kashirin.alex@gmail.com>
3  * License details at <https://github.com/kashirin-alex/swc-db/#license>
4  */
5 
6 #ifndef swcdb_db_client_mngr_ContextManager_h
7 #define swcdb_db_client_mngr_ContextManager_h
8 
11 
12 namespace SWC { namespace client {
13 
14 
16  public:
17 
18  typedef std::shared_ptr<ContextManager> Ptr;
19 
20  ContextManager(const Config::Settings& settings);
21 
22  virtual ~ContextManager() noexcept { }
23 
25 
26  void handle_disconnect(Comm::ConnHandlerPtr) noexcept override { }
27 
28  void handle(Comm::ConnHandlerPtr conn, const Comm::Event::Ptr& ev) override;
29 
30 };
31 
32 
33 }}
34 
35 
36 
37 #ifdef SWC_IMPL_SOURCE
39 #endif
40 
41 #endif // swcdb_db_client_mngr_ContextManager_h
SWC::client::ContextManager::handle_established
void handle_established(Comm::ConnHandlerPtr) override
Definition: ContextManager.h:24
SWC::client::ContextManager::Ptr
std::shared_ptr< ContextManager > Ptr
Definition: ContextManager.h:18
ConnHandler.h
Settings.h
SWC::client::ContextManager::handle_disconnect
void handle_disconnect(Comm::ConnHandlerPtr) noexcept override
Definition: ContextManager.h:26
ContextManager.cc
SWC::client::ContextManager::ContextManager
ContextManager(const Config::Settings &settings)
Definition: ContextManager.cc:12
SWC
The SWC-DB C++ namespace 'SWC'.
Definition: main.cc:12
SWC::Comm::AppContext
Definition: AppContext.h:21
SWC::client::ContextManager::~ContextManager
virtual ~ContextManager() noexcept
Definition: ContextManager.h:22
SWC::client::ContextManager
Definition: ContextManager.h:15
SWC::client::ContextManager::handle
void handle(Comm::ConnHandlerPtr conn, const Comm::Event::Ptr &ev) override
Definition: ContextManager.cc:18
SWC::Config::Settings
Definition: Settings.h:25
SWC::Comm::ConnHandlerPtr
std::shared_ptr< ConnHandler > ConnHandlerPtr
Definition: AppContext.h:17
SWC::Comm::Event::Ptr
std::shared_ptr< Event > Ptr
Definition: Event.h:33