ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
ctd::mptk::Response Class Reference

IFW CTD Multiprocessing Toolkit Response class. More...

#include <Response.hpp>

Public Member Functions

 Response ()
 
 Response (const Response &source)
 
 Response (const Message &message, const std::string &response_code, const std::string &response_data)
 Constructor setting the members of response object. More...
 
 ~Response ()
 
const MessageGetMessage () const
 Get reference to original message object (for which the response was sent). More...
 
const std::string & Code () const
 Return application specific response code. More...
 
const std::string & Data () const
 Return response data (payload). More...
 
std::string Print (const uint16_t truncate=128) const
 Generate ASCII output providing a status of the object. More...
 
Responseoperator= (const Response &source)
 
 Response ()
 
 Response (const Response &source)
 
 Response (const Message &message, const std::string &response_code, const std::string &response_data)
 Constructor setting the members of response object. More...
 
 ~Response ()
 
const MessageGetMessage () const
 Get reference to original message object (for which the response was sent). More...
 
const std::string & Code () const
 Return application specific response code. More...
 
const std::string & Data () const
 Return response data (payload). More...
 
std::string Print (const uint16_t truncate=128) const
 Generate ASCII output providing a status of the object. More...
 
Responseoperator= (const Response &source)
 
 Response ()
 
 Response (const Response &source)
 
 Response (const Message &message, const std::string &response_code, const std::string &response_data)
 Constructor setting the members of response object. More...
 
 ~Response ()
 
const MessageGetMessage () const
 Get reference to original message object (for which the response was sent). More...
 
const std::string & Code () const
 Return application specific response code. More...
 
const std::string & Data () const
 Return response data (payload). More...
 
std::string Print (const uint16_t truncate=128) const
 Generate ASCII output providing a status of the object. More...
 
Responseoperator= (const Response &source)
 

Protected Attributes

ctd::mptk::Message m_message
 
std::string m_response_code
 
std::string m_response_data
 

Detailed Description

IFW CTD Multiprocessing Toolkit Response class.

Constructor & Destructor Documentation

ctd::mptk::Response::Response ( )
ctd::mptk::Response::Response ( const Response source)
ctd::mptk::Response::Response ( const Message message,
const std::string &  response_code,
const std::string &  response_data 
)

Constructor setting the members of response object.

Parameters
messageMessage object received.
response_codeApplication specific response code, e.g. "OK" or "ERROR".
response_dataResponse data (payload).
ctd::mptk::Response::~Response ( )
ctd::mptk::Response::Response ( )
ctd::mptk::Response::Response ( const Response source)
ctd::mptk::Response::Response ( const Message message,
const std::string &  response_code,
const std::string &  response_data 
)

Constructor setting the members of response object.

Parameters
messageMessage object received.
response_codeApplication specific response code, e.g. "OK" or "ERROR".
response_dataResponse data (payload).
ctd::mptk::Response::~Response ( )
ctd::mptk::Response::Response ( )
ctd::mptk::Response::Response ( const Response source)
ctd::mptk::Response::Response ( const Message message,
const std::string &  response_code,
const std::string &  response_data 
)

Constructor setting the members of response object.

Parameters
messageMessage object received.
response_codeApplication specific response code, e.g. "OK" or "ERROR".
response_dataResponse data (payload).
ctd::mptk::Response::~Response ( )

Member Function Documentation

const std::string & ctd::mptk::Response::Code ( ) const

Return application specific response code.

const std::string& ctd::mptk::Response::Code ( ) const

Return application specific response code.

const std::string& ctd::mptk::Response::Code ( ) const

Return application specific response code.

const std::string& ctd::mptk::Response::Data ( ) const

Return response data (payload).

const std::string& ctd::mptk::Response::Data ( ) const

Return response data (payload).

const std::string & ctd::mptk::Response::Data ( ) const

Return response data (payload).

const Message & ctd::mptk::Response::GetMessage ( ) const

Get reference to original message object (for which the response was sent).

const Message& ctd::mptk::Response::GetMessage ( ) const

Get reference to original message object (for which the response was sent).

const Message& ctd::mptk::Response::GetMessage ( ) const

Get reference to original message object (for which the response was sent).

Response& ctd::mptk::Response::operator= ( const Response source)
Response& ctd::mptk::Response::operator= ( const Response source)
Response & ctd::mptk::Response::operator= ( const Response source)
std::string ctd::mptk::Response::Print ( const uint16_t  truncate = 128) const

Generate ASCII output providing a status of the object.

std::string ctd::mptk::Response::Print ( const uint16_t  truncate = 128) const

Generate ASCII output providing a status of the object.

std::string ctd::mptk::Response::Print ( const uint16_t  truncate = 128) const

Generate ASCII output providing a status of the object.

Member Data Documentation

ctd::mptk::Message ctd::mptk::Response::m_message
protected
std::string ctd::mptk::Response::m_response_code
protected
std::string ctd::mptk::Response::m_response_data
protected

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