SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
AppContext.cc
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
7
#include "
swcdb/core/Logger.h
"
8
#include "
swcdb/core/comm/AppContext.h
"
9
10
11
namespace
SWC
{
namespace
Comm {
12
13
14
void
AppContext::handle
(
ConnHandlerPtr
,
const
Event::Ptr
& ev) {
15
SWC_LOG_OUT
(
LOG_WARN
,
16
ev->print(
SWC_LOG_OSTREAM
<<
"AppContext(handle is Virtual!)\n"
);
17
);
18
}
19
20
void
AppContext::stop
() {
21
SWC_LOG
(
LOG_WARN
,
"AppContext(stop is Virtual)!"
);
22
}
23
24
25
}}
Logger.h
SWC_LOG_OSTREAM
#define SWC_LOG_OSTREAM
Definition:
Logger.h:44
SWC_LOG_OUT
#define SWC_LOG_OUT(pr, _code_)
Definition:
Logger.h:178
AppContext.h
SWC::Comm::AppContext::handle
virtual void handle(ConnHandlerPtr conn, const Event::Ptr &ev)=0
Definition:
AppContext.cc:14
SWC_LOG
#define SWC_LOG(priority, message)
Definition:
Logger.h:191
SWC
The SWC-DB C++ namespace 'SWC'.
Definition:
main.cc:12
SWC::Comm::ConnHandlerPtr
std::shared_ptr< ConnHandler > ConnHandlerPtr
Definition:
AppContext.h:17
SWC::Comm::AppContext::stop
virtual void stop()
Definition:
AppContext.cc:20
SWC::LOG_WARN
@ LOG_WARN
Definition:
Logger.h:33
SWC::Comm::Event::Ptr
std::shared_ptr< Event > Ptr
Definition:
Event.h:33
lib
swcdb
core
comm
AppContext.cc
Generated on Sat Jun 3 2023 18:00:08 for SWC-DB by
1.8.20