HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::IJsonSerializable Class Reference

#include <JsonSerializable.hpp>

Inheritance diagram for HCE::IJsonSerializable:

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
bool isError (void) const

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 22 of file JsonSerializable.hpp.

Constructor & Destructor Documentation

HCE::IJsonSerializable::IJsonSerializable ( void  )
inline

Definition at line 56 of file JsonSerializable.hpp.

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

Definition at line 57 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 26 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 66 of file JsonSerializable.hpp.

Here is the caller graph for this function:

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

Definition at line 63 of file JsonSerializable.hpp.

Here is the caller graph for this function:

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

Definition at line 68 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 65 of file JsonSerializable.hpp.

Here is the caller graph for this function:

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

Definition at line 62 of file JsonSerializable.hpp.

Member Data Documentation

bool HCE::IJsonSerializable::_isError
protected

Definition at line 72 of file JsonSerializable.hpp.

unsigned int HCE::IJsonSerializable::errorCode
protected

Definition at line 71 of file JsonSerializable.hpp.

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

Definition at line 70 of file JsonSerializable.hpp.


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