libmoost
|
#include <async_writer.hpp>
Public Member Functions | |
count_rollover (size_t rollover=0) | |
bool | operator() () |
returns true if it's time to roll over | |
std::string | get_path (const std::string &base_path) |
Private Attributes | |
size_t | m_rollover |
size_t | m_count |
rolls over after a specified number of work items have been written
Definition at line 45 of file async_writer.hpp.
moost::io::count_rollover::count_rollover | ( | size_t | rollover = 0 | ) | [inline] |
constructs a count_rollover
rollover | how many items written before we create a new file (0 means never roll over) |
Definition at line 57 of file async_writer.hpp.
std::string moost::io::count_rollover::get_path | ( | const std::string & | base_path | ) | [inline] |
Definition at line 71 of file async_writer.hpp.
bool moost::io::count_rollover::operator() | ( | ) | [inline] |
returns true if it's time to roll over
Definition at line 65 of file async_writer.hpp.
size_t moost::io::count_rollover::m_count [private] |
Definition at line 50 of file async_writer.hpp.
size_t moost::io::count_rollover::m_rollover [private] |
Definition at line 49 of file async_writer.hpp.