rippled
Public Types | Public Member Functions | Protected Types | Private Attributes | List of all members
ripple::detail::WorkFile Class Reference
Inheritance diagram for ripple::detail::WorkFile:
Inheritance graph
[legend]
Collaboration diagram for ripple::detail::WorkFile:
Collaboration graph
[legend]

Public Types

using callback_type = std::function< void(error_code const &, response_type const &)>
 

Public Member Functions

 WorkFile (std::string const &path, boost::asio::io_service &ios, callback_type cb)
 
 ~WorkFile ()
 
void run () override
 
void cancel () override
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 

Protected Types

using error_code = boost::system::error_code
 
using response_type = std::string
 

Private Attributes

std::string path_
 
callback_type cb_
 
boost::asio::io_service & ios_
 
boost::asio::io_service::strand strand_
 

Detailed Description

Definition at line 34 of file WorkFile.h.

Member Typedef Documentation

◆ error_code

using ripple::detail::WorkFile::error_code = boost::system::error_code
protected

Definition at line 37 of file WorkFile.h.

◆ response_type

Definition at line 39 of file WorkFile.h.

◆ callback_type

Definition at line 43 of file WorkFile.h.

Constructor & Destructor Documentation

◆ WorkFile()

ripple::detail::WorkFile::WorkFile ( std::string const &  path,
boost::asio::io_service &  ios,
callback_type  cb 
)

Definition at line 67 of file WorkFile.h.

◆ ~WorkFile()

ripple::detail::WorkFile::~WorkFile ( )

Definition at line 75 of file WorkFile.h.

Member Function Documentation

◆ run()

void ripple::detail::WorkFile::run ( )
overridevirtual

Implements ripple::detail::Work.

Definition at line 82 of file WorkFile.h.

◆ cancel()

void ripple::detail::WorkFile::cancel ( )
overridevirtual

Implements ripple::detail::Work.

Definition at line 97 of file WorkFile.h.

Member Data Documentation

◆ path_

std::string ripple::detail::WorkFile::path_
private

Definition at line 59 of file WorkFile.h.

◆ cb_

callback_type ripple::detail::WorkFile::cb_
private

Definition at line 60 of file WorkFile.h.

◆ ios_

boost::asio::io_service& ripple::detail::WorkFile::ios_
private

Definition at line 61 of file WorkFile.h.

◆ strand_

boost::asio::io_service::strand ripple::detail::WorkFile::strand_
private

Definition at line 62 of file WorkFile.h.