highlighter application  1.1
HCE project utils : highlighter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
HighlightJsonWrapper Class Reference

#include <HighlightJsonWrapper.hpp>

Collaboration diagram for HighlightJsonWrapper:

Public Member Functions

 HighlightJsonWrapper ()
Poco::SharedPtr< InDataStructinDataFromJsomString (const std::string &jsonString)
void jsonStringFromOutData (Poco::SharedPtr< OutDataStruct > outDataStructPtr, std::string &outJSONString, Poco::Timestamp::TimeDiff tDiff)
virtual ~HighlightJsonWrapper ()

Static Public Attributes

static const std::string QUERY_NAME = "q"
static const std::string CONTENTS_NAME = "contents"
static const std::string PARAMETERS_NAME = "parameters"
static const std::string RETURN_HASH_NAME = "return_hash"
static const std::string PARAM_BRGIN_MARKER_NAME = "begin_marker"
static const std::string PARAM_END_MARKER_NAME = "end_marker"
static const std::string PARAM_MAX_NUMBER_NAME = "max_number"
static const std::string PARAM_DELIMITERS_NAME = "delimiters"
static const std::string PARAM_ACRONYMS_NAME = "acronyms"
static const std::string PARAM_NUMBERS_AS_WORDS_NAME = "numbers_as_words"
static const std::string PARAM_USE_SINGLE_CHARS_NAME = "use_single_chars"
static const std::string PARAM_TIMEOUT = "timeout"
static const std::string PARAM_ERROR_CODE_NAME = "error_code"
static const std::string PARAM_ERROR_MSG_NAME = "error_msg"
static const std::string PARAM_CONTENTS_NAME = "contents"
static const std::string PARAM_HIGHLIGHTTED_NAME = "highlighted"
static const std::string PARAM_FOUND_NAME = "found"
static const std::string PARAM_TOTAL_TIME_NAME = "time"

Protected Member Functions

Poco::Dynamic::Var extractParam (const std::string &paramName, Poco::JSON::Object::Ptr parametersPtr)
void parseParams (Poco::SharedPtr< InDataStruct > inDataStructPtr, Poco::JSON::Object::Ptr parametersPtr)

Protected Attributes

JsonObjExtractor jsonObjExtractor

Detailed Description

Definition at line 28 of file HighlightJsonWrapper.hpp.

Constructor & Destructor Documentation

HighlightJsonWrapper::HighlightJsonWrapper ( )
inline

Definition at line 58 of file HighlightJsonWrapper.hpp.

virtual HighlightJsonWrapper::~HighlightJsonWrapper ( )
inlinevirtual

Definition at line 62 of file HighlightJsonWrapper.hpp.

Member Function Documentation

Poco::Dynamic::Var HighlightJsonWrapper::extractParam ( const std::string &  paramName,
Poco::JSON::Object::Ptr  parametersPtr 
)
protected

Definition at line 42 of file HighlightJsonWrapper.cpp.

Poco::SharedPtr< InDataStruct > HighlightJsonWrapper::inDataFromJsomString ( const std::string &  jsonString)

Definition at line 91 of file HighlightJsonWrapper.cpp.

Here is the call graph for this function:

void HighlightJsonWrapper::jsonStringFromOutData ( Poco::SharedPtr< OutDataStruct outDataStructPtr,
std::string &  outJSONString,
Poco::Timestamp::TimeDiff  tDiff 
)

Definition at line 230 of file HighlightJsonWrapper.cpp.

void HighlightJsonWrapper::parseParams ( Poco::SharedPtr< InDataStruct inDataStructPtr,
Poco::JSON::Object::Ptr  parametersPtr 
)
protected

Definition at line 59 of file HighlightJsonWrapper.cpp.

Member Data Documentation

const std::string HighlightJsonWrapper::CONTENTS_NAME = "contents"
static

Definition at line 35 of file HighlightJsonWrapper.hpp.

JsonObjExtractor HighlightJsonWrapper::jsonObjExtractor
protected

Definition at line 31 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_ACRONYMS_NAME = "acronyms"
static

Definition at line 43 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_BRGIN_MARKER_NAME = "begin_marker"
static

Definition at line 39 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_CONTENTS_NAME = "contents"
static

Definition at line 50 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_DELIMITERS_NAME = "delimiters"
static

Definition at line 42 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_END_MARKER_NAME = "end_marker"
static

Definition at line 40 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_ERROR_CODE_NAME = "error_code"
static

Definition at line 48 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_ERROR_MSG_NAME = "error_msg"
static

Definition at line 49 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_FOUND_NAME = "found"
static

Definition at line 52 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_HIGHLIGHTTED_NAME = "highlighted"
static

Definition at line 51 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_MAX_NUMBER_NAME = "max_number"
static

Definition at line 41 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_NUMBERS_AS_WORDS_NAME = "numbers_as_words"
static

Definition at line 44 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_TIMEOUT = "timeout"
static

Definition at line 46 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_TOTAL_TIME_NAME = "time"
static

Definition at line 53 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAM_USE_SINGLE_CHARS_NAME = "use_single_chars"
static

Definition at line 45 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::PARAMETERS_NAME = "parameters"
static

Definition at line 36 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::QUERY_NAME = "q"
static

Definition at line 34 of file HighlightJsonWrapper.hpp.

const std::string HighlightJsonWrapper::RETURN_HASH_NAME = "return_hash"
static

Definition at line 37 of file HighlightJsonWrapper.hpp.


The documentation for this class was generated from the following files: