|
rippled
|

Public Member Functions | |
| ~value_type ()=default | |
| Destructor. More... | |
| value_type ()=default | |
| Constructor. More... | |
| bool | is_open () const |
Returns true if the file is open. More... | |
| std::uint64_t | size () const |
| Returns the size of the file if open. More... | |
| void | close () |
| Close the file if open. More... | |
| void | open (boost::filesystem::path const &path, Config const &config, boost::asio::io_service &io_service, boost::system::error_code &ec) |
| Open a file at the given path with the specified mode. More... | |
Private Attributes | |
| std::uint64_t | fileSize_ = 0 |
| boost::filesystem::path | path_ |
| std::unique_ptr< DatabaseCon > | conn_ |
| std::string | batch_ |
| std::shared_ptr< boost::asio::io_service::strand > | strand_ |
| std::mutex | m_ |
| std::condition_variable | c_ |
| std::uint64_t | handlerCount_ = 0 |
| std::uint64_t | part_ = 0 |
| bool | closing_ = false |
Friends | |
| class | reader |
| struct | DatabaseBody |
Definition at line 51 of file DatabaseBody.h.
|
default |
Destructor.
|
default |
Constructor.
| bool ripple::DatabaseBody::value_type::is_open | ( | ) | const |
Returns true if the file is open.
Definition at line 80 of file DatabaseBody.h.
| std::uint64_t ripple::DatabaseBody::value_type::size | ( | ) | const |
Returns the size of the file if open.
Definition at line 87 of file DatabaseBody.h.
| void ripple::DatabaseBody::value_type::close | ( | ) |
Close the file if open.
| void ripple::DatabaseBody::value_type::open | ( | boost::filesystem::path const & | path, |
| Config const & | config, | ||
| boost::asio::io_service & | io_service, | ||
| boost::system::error_code & | ec | ||
| ) |
Open a file at the given path with the specified mode.
| path | The utf-8 encoded path to the file |
| config | The configuration settings |
| io_service | The asio context for running a strand. |
| ec | Set to the error, if any occurred |
|
friend |
Definition at line 56 of file DatabaseBody.h.
|
friend |
Definition at line 57 of file DatabaseBody.h.
|
private |
Definition at line 60 of file DatabaseBody.h.
|
private |
Definition at line 61 of file DatabaseBody.h.
|
private |
Definition at line 62 of file DatabaseBody.h.
|
private |
Definition at line 63 of file DatabaseBody.h.
|
private |
Definition at line 64 of file DatabaseBody.h.
|
private |
Definition at line 65 of file DatabaseBody.h.
|
private |
Definition at line 66 of file DatabaseBody.h.
|
private |
Definition at line 67 of file DatabaseBody.h.
|
private |
Definition at line 68 of file DatabaseBody.h.
|
private |
Definition at line 69 of file DatabaseBody.h.
1.8.17