WoW Addon Manager Client  0.0.1-alpha
A p2p World of Warcraft addon manager
Response< T > Class Template Reference

#include <response.h>

Public Member Functions

 ~Response ()=default
 
 Response ()=delete
 
 Response (const std::string &p_message, const int &p_error_code, const boost::optional< T > &p_data)
 
boost::optional< T > get_data ()
 
std::string get_message ()
 
int get_error_code ()
 

Private Attributes

std::string m_message = ""
 
int m_error_code = 0
 
boost::optional< T > m_data
 

Detailed Description

template<class T>
class Response< T >

Definition at line 12 of file response.h.

Constructor & Destructor Documentation

◆ ~Response()

template<class T >
Response< T >::~Response ( )
default

◆ Response() [1/2]

template<class T >
Response< T >::Response ( )
delete

◆ Response() [2/2]

template<class T >
Response< T >::Response ( const std::string &  p_message,
const int &  p_error_code,
const boost::optional< T > &  p_data 
)
inline

Definition at line 17 of file response.h.

Member Function Documentation

◆ get_data()

template<class T >
boost::optional<T> Response< T >::get_data ( )
inline

Definition at line 24 of file response.h.

◆ get_error_code()

template<class T >
int Response< T >::get_error_code ( )
inline

Definition at line 35 of file response.h.

◆ get_message()

template<class T >
std::string Response< T >::get_message ( )
inline

Definition at line 32 of file response.h.

Member Data Documentation

◆ m_data

template<class T >
boost::optional<T> Response< T >::m_data
private

Definition at line 45 of file response.h.

◆ m_error_code

template<class T >
int Response< T >::m_error_code = 0
private

Definition at line 44 of file response.h.

◆ m_message

template<class T >
std::string Response< T >::m_message = ""
private

Definition at line 43 of file response.h.


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