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::sphinx::SphinxOutputJsonMessage Class Reference

#include <SphinxOutputJsonMessage.hpp>

Inheritance diagram for HCE::sphinx::SphinxOutputJsonMessage:
Collaboration diagram for HCE::sphinx::SphinxOutputJsonMessage:

Public Member Functions

 SphinxOutputJsonMessage (const std::string &json="")
 SphinxOutputJsonMessage (const SphinxOutputJsonMessage &)
virtual ~SphinxOutputJsonMessage (void)
bool serialize (std::string &json)
bool unserialize (const std::string &json)
void setErrorCode (unsigned int errorCode_)
unsigned int getErrorCode (void) const
void setErrorMessage (const std::string &errorMessage_)
std::string getErrorMessage (void) const
void setData (const std::string &data_)
std::string getData (void) const
void setTime (unsigned int time_)
unsigned int getTime (void) const
void clear (void)
SphinxOutputJsonMessageoperator= (const SphinxOutputJsonMessage &)
- Public Member Functions inherited from HCE::IJsonSerializable
 IJsonSerializable (void)
virtual ~IJsonSerializable (void)
void setErrorMsg (const std::string &errorMsg_)
std::string getErrorMsg (void) const
bool isError (void) const

Friends

std::istream & operator>> (std::istream &is, SphinxOutputJsonMessage &jsonHandler)
std::ostream & operator<< (std::ostream &os, const SphinxOutputJsonMessage &jsonHandler)

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 34 of file SphinxOutputJsonMessage.hpp.

Constructor & Destructor Documentation

HCE::sphinx::SphinxOutputJsonMessage::SphinxOutputJsonMessage ( const std::string &  json = "")
explicit

Definition at line 17 of file SphinxOutputJsonMessage.cpp.

Here is the call graph for this function:

HCE::sphinx::SphinxOutputJsonMessage::SphinxOutputJsonMessage ( const SphinxOutputJsonMessage rhs)

Definition at line 24 of file SphinxOutputJsonMessage.cpp.

virtual HCE::sphinx::SphinxOutputJsonMessage::~SphinxOutputJsonMessage ( void  )
inlinevirtual

Definition at line 39 of file SphinxOutputJsonMessage.hpp.

Member Function Documentation

void HCE::sphinx::SphinxOutputJsonMessage::clear ( void  )

Definition at line 42 of file SphinxOutputJsonMessage.cpp.

Here is the caller graph for this function:

std::string HCE::sphinx::SphinxOutputJsonMessage::getData ( void  ) const
inline

Definition at line 51 of file SphinxOutputJsonMessage.hpp.

Here is the caller graph for this function:

unsigned int HCE::sphinx::SphinxOutputJsonMessage::getErrorCode ( void  ) const
inline

Reimplemented from HCE::IJsonSerializable.

Definition at line 45 of file SphinxOutputJsonMessage.hpp.

Here is the caller graph for this function:

std::string HCE::sphinx::SphinxOutputJsonMessage::getErrorMessage ( void  ) const
inline

Definition at line 48 of file SphinxOutputJsonMessage.hpp.

Here is the caller graph for this function:

unsigned int HCE::sphinx::SphinxOutputJsonMessage::getTime ( void  ) const
inline

Definition at line 54 of file SphinxOutputJsonMessage.hpp.

Here is the caller graph for this function:

SphinxOutputJsonMessage & HCE::sphinx::SphinxOutputJsonMessage::operator= ( const SphinxOutputJsonMessage rhs)

Definition at line 30 of file SphinxOutputJsonMessage.cpp.

Here is the call graph for this function:

bool HCE::sphinx::SphinxOutputJsonMessage::serialize ( std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 51 of file SphinxOutputJsonMessage.cpp.

Here is the caller graph for this function:

void HCE::sphinx::SphinxOutputJsonMessage::setData ( const std::string &  data_)
inline

Definition at line 50 of file SphinxOutputJsonMessage.hpp.

Here is the caller graph for this function:

void HCE::sphinx::SphinxOutputJsonMessage::setErrorCode ( unsigned int  errorCode_)
inline

Reimplemented from HCE::IJsonSerializable.

Definition at line 44 of file SphinxOutputJsonMessage.hpp.

Here is the caller graph for this function:

void HCE::sphinx::SphinxOutputJsonMessage::setErrorMessage ( const std::string &  errorMessage_)
inline

Definition at line 47 of file SphinxOutputJsonMessage.hpp.

Here is the caller graph for this function:

void HCE::sphinx::SphinxOutputJsonMessage::setTime ( unsigned int  time_)
inline

Definition at line 53 of file SphinxOutputJsonMessage.hpp.

Here is the caller graph for this function:

bool HCE::sphinx::SphinxOutputJsonMessage::unserialize ( const std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 77 of file SphinxOutputJsonMessage.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 SphinxOutputJsonMessage jsonHandler 
)
friend

Definition at line 129 of file SphinxOutputJsonMessage.cpp.

std::istream& operator>> ( std::istream &  is,
SphinxOutputJsonMessage jsonHandler 
)
friend

Definition at line 118 of file SphinxOutputJsonMessage.cpp.


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