libmoost
moost::io::count_rollover Class Reference

#include <async_writer.hpp>

List of all members.

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

Detailed Description

rolls over after a specified number of work items have been written

Definition at line 45 of file async_writer.hpp.


Constructor & Destructor Documentation

moost::io::count_rollover::count_rollover ( size_t  rollover = 0) [inline]

constructs a count_rollover

Parameters:
rolloverhow many items written before we create a new file (0 means never roll over)

Definition at line 57 of file async_writer.hpp.


Member Function Documentation

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.


Member Data Documentation

Definition at line 50 of file async_writer.hpp.

Definition at line 49 of file async_writer.hpp.


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