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

#include <JsonSerializable.hpp>

Inheritance diagram for HCE::IJsonSerializable:

Public Types

enum  { NO_ERROR = 0 }

Public Member Functions

 IJsonSerializable (void)
virtual ~IJsonSerializable (void)
virtual bool serialize (std::string &json)=0
virtual bool unserialize (const std::string &json)=0
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)

Protected Member Functions

template<class T = unsigned long long>
convertVarToNumeric (Poco::Dynamic::Var &var, T defaultValue)

Protected Attributes

std::string errorMsg
unsigned int errorCode
bool _isError

Detailed Description

Definition at line 26 of file JsonSerializable.hpp.

Member Enumeration Documentation

anonymous enum
Enumerator:
NO_ERROR 

Definition at line 29 of file JsonSerializable.hpp.

Constructor & Destructor Documentation

HCE::IJsonSerializable::IJsonSerializable ( void  )
inline

Definition at line 68 of file JsonSerializable.hpp.

virtual HCE::IJsonSerializable::~IJsonSerializable ( void  )
inlinevirtual

Definition at line 69 of file JsonSerializable.hpp.

Member Function Documentation

template<class T = unsigned long long>
T HCE::IJsonSerializable::convertVarToNumeric ( Poco::Dynamic::Var &  var,
defaultValue 
)
inlineprotected

Definition at line 35 of file JsonSerializable.hpp.

Here is the caller graph for this function:

unsigned int HCE::IJsonSerializable::getErrorCode ( void  ) const
inline

Reimplemented in HCE::sphinx::SphinxOutputJsonMessage.

Definition at line 78 of file JsonSerializable.hpp.

std::string HCE::IJsonSerializable::getErrorMsg ( void  ) const
inline

Definition at line 75 of file JsonSerializable.hpp.

bool HCE::IJsonSerializable::isError ( void  ) const
inline

Definition at line 81 of file JsonSerializable.hpp.

void HCE::IJsonSerializable::resetError ( void  )
inline

Definition at line 82 of file JsonSerializable.hpp.

Here is the caller graph for this function:

void HCE::IJsonSerializable::setErrorCode ( unsigned int  errorCode_)
inline

Reimplemented in HCE::sphinx::SphinxOutputJsonMessage.

Definition at line 77 of file JsonSerializable.hpp.

Here is the caller graph for this function:

void HCE::IJsonSerializable::setErrorMsg ( const std::string &  errorMsg_)
inline

Definition at line 74 of file JsonSerializable.hpp.

Here is the caller graph for this function:

void HCE::IJsonSerializable::setIsError ( bool  isError_)
inline

Definition at line 80 of file JsonSerializable.hpp.

Here is the caller graph for this function:

Member Data Documentation

bool HCE::IJsonSerializable::_isError
protected

Definition at line 91 of file JsonSerializable.hpp.

unsigned int HCE::IJsonSerializable::errorCode
protected

Definition at line 90 of file JsonSerializable.hpp.

std::string HCE::IJsonSerializable::errorMsg
protected

Definition at line 89 of file JsonSerializable.hpp.


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