Evo C++ Library v0.5.1
Public Types | Public Member Functions | Public Attributes | List of all members
AsyncServerHandler::ResponseResult< T > Struct Template Reference

#include <evo/ioasync_server.h>

Detailed Description

template<class T>
struct evo::AsyncServerHandler::ResponseResult< T >

Handler response result.

Public Types

typedef T ResultType
 Result type for rtNORMAL response. More...
 

Public Member Functions

 ResponseResult ()
 Default constructor initializes as rtCLOSE – other constructors preferred. More...
 
 ResponseResult (const ResponseResult &src)
 Copy constructor. More...
 
 ResponseResult (ResponseType type)
 Constructor for ResponseResult – use for non rtNORMAL response. More...
 
 ResponseResult (ResultType result)
 Constructor for ResultType – use for rtNORMAL response. More...
 
ResponseResultoperator= (ResponseType newtype)
 Assignment operator for ResponseResult – use for non rtNORMAL response. More...
 
ResponseResultoperator= (ResultType newresult)
 Assignment operator for ResponseResult – use for non rtNORMAL response. More...
 
ResponseResultoperator= (const ResponseResult &src)
 Assignment operator to copy. More...
 

Public Attributes

ResultType result
 Normal response result – ignored unless type=rtNORMAL More...
 
ResponseType type
 Response type – see ResponseType. More...
 

Member Typedef Documentation

◆ ResultType

typedef T ResultType

Result type for rtNORMAL response.

Constructor & Destructor Documentation

◆ ResponseResult() [1/4]

ResponseResult ( )
inline

Default constructor initializes as rtCLOSE – other constructors preferred.

◆ ResponseResult() [2/4]

ResponseResult ( const ResponseResult< T > &  src)
inline

Copy constructor.

Parameters
srcSource to copy

◆ ResponseResult() [3/4]

ResponseResult ( ResponseType  type)
inline

Constructor for ResponseResult – use for non rtNORMAL response.

Parameters
typeResponse type, should not be rtNORMAL – use ResponseResult(ResultType) for rtNORMAL result

◆ ResponseResult() [4/4]

ResponseResult ( ResultType  result)
inline

Constructor for ResultType – use for rtNORMAL response.

Parameters
resultResult value – use ResponseResult(ResponseType) for non rtNORMAL result

Member Function Documentation

◆ operator=() [1/3]

ResponseResult& operator= ( ResponseType  newtype)
inline

Assignment operator for ResponseResult – use for non rtNORMAL response.

Parameters
newtypeResponse type, should not be rtNORMAL – use ResponseResult(ResultType) for rtNORMAL result
Returns
This

◆ operator=() [2/3]

ResponseResult& operator= ( ResultType  newresult)
inline

Assignment operator for ResponseResult – use for non rtNORMAL response.

Parameters
newresultResult value – use ResponseResult(ResponseType) for non rtNORMAL result
Returns
This

◆ operator=() [3/3]

ResponseResult& operator= ( const ResponseResult< T > &  src)
inline

Assignment operator to copy.

Parameters
srcSource to copy
Returns
This

Member Data Documentation

◆ result

ResultType result

Normal response result – ignored unless type=rtNORMAL

◆ type

Response type – see ResponseType.


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