The Battle for Wesnoth  1.15.1+dev
Classes | Public Member Functions | Public Attributes | List of all members
handle_doc< Handler, ErrorHandler > Struct Template Reference
Inheritance diagram for handle_doc< Handler, ErrorHandler >:
Inheritance graph

Classes

union  DataSize
 

Public Member Functions

 handle_doc (socket_ptr socket, Handler handler, ErrorHandler error_handler, uint32_t size, std::shared_ptr< simple_wml::document > doc)
 
 handle_doc (socket_ptr socket, Handler handler, ErrorHandler error_handler)
 
void operator() (const boost::system::error_code &error, std::size_t)
 

Public Attributes

Handler handler
 
ErrorHandler error_handler
 
socket_ptr socket
 
std::shared_ptr< DataSizedata_size
 
std::shared_ptr< simple_wml::documentdoc
 
boost::shared_array< char > buffer
 

Detailed Description

template<typename Handler, typename ErrorHandler>
struct handle_doc< Handler, ErrorHandler >

Definition at line 39 of file send_receive_wml_helpers.ipp.

Constructor & Destructor Documentation

◆ handle_doc() [1/2]

template<typename Handler, typename ErrorHandler>
handle_doc< Handler, ErrorHandler >::handle_doc ( socket_ptr  socket,
Handler  handler,
ErrorHandler  error_handler,
uint32_t  size,
std::shared_ptr< simple_wml::document doc 
)
inline

Definition at line 52 of file send_receive_wml_helpers.ipp.

◆ handle_doc() [2/2]

template<typename Handler, typename ErrorHandler>
handle_doc< Handler, ErrorHandler >::handle_doc ( socket_ptr  socket,
Handler  handler,
ErrorHandler  error_handler 
)
inline

Definition at line 57 of file send_receive_wml_helpers.ipp.

Member Function Documentation

◆ operator()()

template<typename Handler, typename ErrorHandler>
void handle_doc< Handler, ErrorHandler >::operator() ( const boost::system::error_code &  error,
std::size_t   
)
inline

Member Data Documentation

◆ buffer

template<typename Handler, typename ErrorHandler>
boost::shared_array<char> handle_doc< Handler, ErrorHandler >::buffer

◆ data_size

template<typename Handler, typename ErrorHandler>
std::shared_ptr<DataSize> handle_doc< Handler, ErrorHandler >::data_size

◆ doc

template<typename Handler, typename ErrorHandler>
std::shared_ptr<simple_wml::document> handle_doc< Handler, ErrorHandler >::doc

◆ error_handler

template<typename Handler, typename ErrorHandler>
ErrorHandler handle_doc< Handler, ErrorHandler >::error_handler

◆ handler

template<typename Handler, typename ErrorHandler>
Handler handle_doc< Handler, ErrorHandler >::handler

◆ socket

template<typename Handler, typename ErrorHandler>
socket_ptr handle_doc< Handler, ErrorHandler >::socket

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