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"
9 
10 
11 namespace SWC { namespace Comm {
12 
13 
16  ev->print(SWC_LOG_OSTREAM << "AppContext(handle is Virtual!)\n");
17  );
18 }
19 
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