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::drce::DRCEOutputJsonMessage Class Reference

#include <DRCEOutputJsonMessage.hpp>

Inheritance diagram for HCE::drce::DRCEOutputJsonMessage:
Collaboration diagram for HCE::drce::DRCEOutputJsonMessage:

Public Member Functions

 DRCEOutputJsonMessage (const std::string &json="")
virtual ~DRCEOutputJsonMessage (void)
bool serialize (std::string &json)
bool unserialize (const std::string &json)
void clear (void)
void setErrorMessage (const std::string &errorMessage_)
std::string getErrorMessage (void) const
void setTime (size_t time_)
size_t getTime (void) const
void setData (const std::string &data_)
std::string getData (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
bool isError (void) const

Friends

std::istream & operator>> (std::istream &is, DRCEOutputJsonMessage &outputJsonMessage)
std::ostream & operator<< (std::ostream &os, const DRCEOutputJsonMessage &outputJsonMessage)

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 27 of file DRCEOutputJsonMessage.hpp.

Constructor & Destructor Documentation

HCE::drce::DRCEOutputJsonMessage::DRCEOutputJsonMessage ( const std::string &  json = "")
explicit

Definition at line 17 of file DRCEOutputJsonMessage.cpp.

Here is the call graph for this function:

virtual HCE::drce::DRCEOutputJsonMessage::~DRCEOutputJsonMessage ( void  )
inlinevirtual

Definition at line 31 of file DRCEOutputJsonMessage.hpp.

Member Function Documentation

void HCE::drce::DRCEOutputJsonMessage::clear ( void  )

Definition at line 24 of file DRCEOutputJsonMessage.cpp.

Here is the caller graph for this function:

std::string HCE::drce::DRCEOutputJsonMessage::getData ( void  ) const
inline

Definition at line 45 of file DRCEOutputJsonMessage.hpp.

std::string HCE::drce::DRCEOutputJsonMessage::getErrorMessage ( void  ) const
inline

Definition at line 39 of file DRCEOutputJsonMessage.hpp.

size_t HCE::drce::DRCEOutputJsonMessage::getTime ( void  ) const
inline

Definition at line 42 of file DRCEOutputJsonMessage.hpp.

bool HCE::drce::DRCEOutputJsonMessage::serialize ( std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 34 of file DRCEOutputJsonMessage.cpp.

Here is the caller graph for this function:

void HCE::drce::DRCEOutputJsonMessage::setData ( const std::string &  data_)
inline

Definition at line 44 of file DRCEOutputJsonMessage.hpp.

Here is the caller graph for this function:

void HCE::drce::DRCEOutputJsonMessage::setErrorMessage ( const std::string &  errorMessage_)
inline

Definition at line 38 of file DRCEOutputJsonMessage.hpp.

Here is the caller graph for this function:

void HCE::drce::DRCEOutputJsonMessage::setTime ( size_t  time_)
inline

Definition at line 41 of file DRCEOutputJsonMessage.hpp.

Here is the caller graph for this function:

bool HCE::drce::DRCEOutputJsonMessage::unserialize ( const std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 59 of file DRCEOutputJsonMessage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DRCEOutputJsonMessage outputJsonMessage 
)
friend

Definition at line 111 of file DRCEOutputJsonMessage.cpp.

std::istream& operator>> ( std::istream &  is,
DRCEOutputJsonMessage outputJsonMessage 
)
friend

Definition at line 100 of file DRCEOutputJsonMessage.cpp.


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