hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::handlers::RouteMessage Class Reference

#include <ServiceMessages.hpp>

Inheritance diagram for HCE::handlers::RouteMessage:
Collaboration diagram for HCE::handlers::RouteMessage:

Public Types

enum  ErrorCodes { NO_ERROR = 0, ERROR_SERIALIZE = 1, ERROR_UNSERIALIZE = 2, ERROR_TITLE = 3 }
- Public Types inherited from HCE::IJsonSerializable
enum  { NO_ERROR = 0 }

Public Member Functions

 RouteMessage (std::vector< ClientWorkerItem > &queue_)
 ~RouteMessage (void)
bool serialize (std::string &json)
bool unserialize (const std::string &json)
std::string build (const std::string &title="")
void extract (const std::string &title, const std::string &msgBody)
void clear (void)
std::vector< std::string > extractRouteNames (void)
- Public Member Functions inherited from HCE::IJsonSerializable
 IJsonSerializable (void)
virtual ~IJsonSerializable (void)
void setErrorMsg (const std::string &errorMsg_)
std::string getErrorMsg (void) const
void setErrorCode (unsigned int errorCode_)
unsigned int getErrorCode (void) const
void setIsError (bool isError_)
bool isError (void) const
void resetError (void)

Static Public Member Functions

static std::vector< std::string > extractIdentityNames (const std::string &routeMessage)
static std::string buildIdentityNames (const std::vector< ClientWorkerItem > &clientQueue)
static std::string buildIdentityNames (const std::vector< std::string > &names)
static std::vector< std::string > extractRouteNames (const std::vector< ClientWorkerItem > &clientQueue)

Additional Inherited Members

- Protected Member Functions inherited from HCE::IJsonSerializable
template<class T = unsigned long long>
convertVarToNumeric (Poco::Dynamic::Var &var, T defaultValue)
- Protected Attributes inherited from HCE::IJsonSerializable
std::string errorMsg
unsigned int errorCode
bool _isError

Detailed Description

Definition at line 29 of file ServiceMessages.hpp.

Member Enumeration Documentation

Enumerator:
NO_ERROR 
ERROR_SERIALIZE 
ERROR_UNSERIALIZE 
ERROR_TITLE 

Definition at line 32 of file ServiceMessages.hpp.

Constructor & Destructor Documentation

HCE::handlers::RouteMessage::RouteMessage ( std::vector< ClientWorkerItem > &  queue_)

Definition at line 17 of file ServiceMessages.cpp.

HCE::handlers::RouteMessage::~RouteMessage ( void  )
inline

Definition at line 41 of file ServiceMessages.hpp.

Member Function Documentation

std::string HCE::handlers::RouteMessage::build ( const std::string &  title = "")

Definition at line 121 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string HCE::handlers::RouteMessage::buildIdentityNames ( const std::vector< ClientWorkerItem > &  clientQueue)
static

Definition at line 184 of file ServiceMessages.cpp.

std::string HCE::handlers::RouteMessage::buildIdentityNames ( const std::vector< std::string > &  names)
static

Definition at line 194 of file ServiceMessages.cpp.

void HCE::handlers::RouteMessage::clear ( void  )

Definition at line 156 of file ServiceMessages.cpp.

void HCE::handlers::RouteMessage::extract ( const std::string &  title,
const std::string &  msgBody 
)

Definition at line 134 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< std::string > HCE::handlers::RouteMessage::extractIdentityNames ( const std::string &  routeMessage)
static

Definition at line 161 of file ServiceMessages.cpp.

std::vector< std::string > HCE::handlers::RouteMessage::extractRouteNames ( const std::vector< ClientWorkerItem > &  clientQueue)
static

Definition at line 215 of file ServiceMessages.cpp.

Here is the call graph for this function:

std::vector< std::string > HCE::handlers::RouteMessage::extractRouteNames ( void  )

Definition at line 222 of file ServiceMessages.cpp.

Here is the caller graph for this function:

bool HCE::handlers::RouteMessage::serialize ( std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 35 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::handlers::RouteMessage::unserialize ( const std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 84 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


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