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::PropertyMessage Class Reference

#include <ServiceMessages.hpp>

Inheritance diagram for HCE::handlers::PropertyMessage:
Collaboration diagram for HCE::handlers::PropertyMessage:

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

 PropertyMessage (const std::string &identity_="", const std::string &property_="")
 ~PropertyMessage (void)
bool serialize (std::string &json)
bool unserialize (const std::string &json)
std::string build (const std::string &title=NODE_MSG_PROPERTIES)
void extract (const std::string &message, const std::string &title=NODE_MSG_PROPERTIES)
void clear (void)
void setIdentity (const std::string &identity_)
std::string getIdentity (void) const
void setProperty (const std::string &property_)
std::string getProperty (void) const
- 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)

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 158 of file ServiceMessages.hpp.

Member Enumeration Documentation

Enumerator:
NO_ERROR 
ERROR_SERIALIZE 
ERROR_UNSERIALIZE 
ERROR_TITLE 

Definition at line 161 of file ServiceMessages.hpp.

Constructor & Destructor Documentation

HCE::handlers::PropertyMessage::PropertyMessage ( const std::string &  identity_ = "",
const std::string &  property_ = "" 
)
explicit

Definition at line 503 of file ServiceMessages.cpp.

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

Definition at line 170 of file ServiceMessages.hpp.

Member Function Documentation

std::string HCE::handlers::PropertyMessage::build ( const std::string &  title = NODE_MSG_PROPERTIES)

Definition at line 587 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::handlers::PropertyMessage::clear ( void  )

Definition at line 622 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::handlers::PropertyMessage::extract ( const std::string &  message,
const std::string &  title = NODE_MSG_PROPERTIES 
)

Definition at line 600 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string HCE::handlers::PropertyMessage::getIdentity ( void  ) const
inline

Definition at line 181 of file ServiceMessages.hpp.

std::string HCE::handlers::PropertyMessage::getProperty ( void  ) const
inline

Definition at line 184 of file ServiceMessages.hpp.

Here is the caller graph for this function:

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

Implements HCE::IJsonSerializable.

Definition at line 508 of file ServiceMessages.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::handlers::PropertyMessage::setIdentity ( const std::string &  identity_)
inline

Definition at line 180 of file ServiceMessages.hpp.

void HCE::handlers::PropertyMessage::setProperty ( const std::string &  property_)
inline

Definition at line 183 of file ServiceMessages.hpp.

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

Implements HCE::IJsonSerializable.

Definition at line 540 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: