SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
ContextRanger.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_rgr_ContextRanger_h
7
#define swcdb_db_client_rgr_ContextRanger_h
8
9
#include "
swcdb/db/client/Settings.h
"
10
#include "
swcdb/core/comm/ConnHandler.h
"
11
12
namespace
SWC
{
namespace
client {
13
14
15
class
ContextRanger
:
public
Comm::AppContext
{
16
public
:
17
18
typedef
std::shared_ptr<ContextRanger>
Ptr
;
19
20
ContextRanger
(
const
Config::Settings
& settings);
21
22
virtual
~ContextRanger
() noexcept { }
23
24
void
handle_established
(
Comm::ConnHandlerPtr
)
override
{ }
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
38
#include "
swcdb/db/client/service/rgr/ContextRanger.cc
"
39
#endif
40
41
#endif // swcdb_db_client_rgr_ContextRanger_h
SWC::client::ContextRanger::~ContextRanger
virtual ~ContextRanger() noexcept
Definition:
ContextRanger.h:22
ConnHandler.h
Settings.h
ContextRanger.cc
SWC
The SWC-DB C++ namespace 'SWC'.
Definition:
main.cc:12
SWC::Comm::AppContext
Definition:
AppContext.h:21
SWC::Config::Settings
Definition:
Settings.h:25
SWC::Comm::ConnHandlerPtr
std::shared_ptr< ConnHandler > ConnHandlerPtr
Definition:
AppContext.h:17
SWC::client::ContextRanger::handle_disconnect
void handle_disconnect(Comm::ConnHandlerPtr) noexcept override
Definition:
ContextRanger.h:26
SWC::client::ContextRanger::handle_established
void handle_established(Comm::ConnHandlerPtr) override
Definition:
ContextRanger.h:24
SWC::client::ContextRanger::Ptr
std::shared_ptr< ContextRanger > Ptr
Definition:
ContextRanger.h:18
SWC::client::ContextRanger::ContextRanger
ContextRanger(const Config::Settings &settings)
Definition:
ContextRanger.cc:12
SWC::client::ContextRanger::handle
void handle(Comm::ConnHandlerPtr conn, const Comm::Event::Ptr &ev) override
Definition:
ContextRanger.cc:18
SWC::Comm::Event::Ptr
std::shared_ptr< Event > Ptr
Definition:
Event.h:33
SWC::client::ContextRanger
Definition:
ContextRanger.h:15
include
swcdb
db
client
service
rgr
ContextRanger.h
Generated on Sat Jun 3 2023 18:00:06 for SWC-DB by
1.8.20