#include <Application.hpp>
Detailed Description
Definition at line 36 of file Application.hpp.
Constructor & Destructor Documentation
Application::Application |
( |
| ) |
|
Application::~Application |
( |
| ) |
throw () |
|
virtual |
Member Function Documentation
void Application::addWCache |
( |
unsigned long long & |
resCrc, |
|
|
std::string & |
wCacheBase64 |
|
) |
| |
|
protected |
Application::addWCache method. Method perform next steps base64 decode incoming string. if decoding successful - trys to unpack serialize cache data if unpacking successful - compares crc, from incoming message, with crc of deserialize cache data
Definition at line 95 of file Application.cpp.
bool Application::checkNeededConfigParams |
( |
| ) |
|
|
protected |
void Application::componentsInitialize |
( |
| ) |
|
|
protected |
Application::componentsInitialize method. Method perform next steps a) Creates componentManagerPool and localComponentManager elements b) Creates "COMPONENTS_COUNT" HighlightComponent-s with componentsFactory using. c) Initializes HighlightComponent-s, filled it concrete HighlightingAlgorithms. d) Inserts initialized component instance into the localComponentManager element. e) Adds localComponentManager element to the componentManagerPool and starts its execution.
Definition at line 66 of file Application.cpp.
void Application::extractWCache |
( |
msgpack::sbuffer & |
msgPackBuf, |
|
|
Poco::SharedPtr< OutDataStruct > |
outDataStructPtr |
|
) |
| |
|
protected |
void Application::factoriesRegister |
( |
| ) |
|
|
protected |
void Application::handleHelp |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
|
protectedvirtual |
void Application::handleVersion |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
|
protectedvirtual |
void Application::highlightComponentExecutor |
( |
Poco::SharedPtr< InDataStruct > |
inDataStructPtr, |
|
|
Poco::SharedPtr< OutDataStruct > |
outDataStructPtr |
|
) |
| |
|
protected |
Application::highlightComponentExecutor method. Method performs main higlight functionality. Gets input data as inDataStructPtr param, and returns result data through outDataStructPtr param. Method performs through next steeps: a) Prepears and fills crossThreadBufPtr struct. b) Prepears and fills inDataHighlight struct. c) Starts Higlight tasks in the Higlight Components (may perform in the separate threads) and waits their's finish (or timeout). d) Extracts results from crossThreadBufPtr and fills outDataStructPtr structure.
Definition at line 141 of file Application.cpp.
int Application::main |
( |
const std::vector< std::string > & |
args | ) |
|
|
protectedvirtual |
Application::main method. Main "highlight application" method, incoming and outgoing point. Method performs through next steeps: a) Checks needed config params, if they are absent we exits from application. b) Reads incoming data (in JSON format) from cout, parses it. c) Calls processing method Application::highlightComponentExecutor, gets processing data (return from second param in the Application::highlightComponentExecutor call). d) Prepares outPut data with highlightJsonWrapper::jsonStringFromOutData method call.
Definition at line 253 of file Application.cpp.
void Application::readData |
( |
std::string & |
incomeString | ) |
|
|
protected |
Member Data Documentation
bool Application::exitFlag |
|
protected |
std::string Application::outDataString |
|
protected |
The documentation for this class was generated from the following files: