libmoost
moost::io::timeofday_rollover Class Reference

#include <async_writer.hpp>

List of all members.

Public Member Functions

 timeofday_rollover (int hour=0, int minute=0, int second=0)
bool operator() ()
 returns true if it's time to roll over
std::string get_path (const std::string &base_path, boost::gregorian::date *path_date=NULL)

Private Attributes

boost::posix_time::time_duration m_rollover_timeofday
boost::posix_time::ptime m_next_rollover

Detailed Description

rolls over once at a specified time of day

Definition at line 83 of file async_writer.hpp.


Constructor & Destructor Documentation

moost::io::timeofday_rollover::timeofday_rollover ( int  hour = 0,
int  minute = 0,
int  second = 0 
) [inline]

constructs a timeofday_rollover

Parameters:
hourthe hour of the day to roll over
minutethe minute of the day to roll over
secondthe second of the day to roll over

Definition at line 97 of file async_writer.hpp.


Member Function Documentation

std::string moost::io::timeofday_rollover::get_path ( const std::string &  base_path,
boost::gregorian::date *  path_date = NULL 
) [inline]

Definition at line 120 of file async_writer.hpp.

bool moost::io::timeofday_rollover::operator() ( ) [inline]

returns true if it's time to roll over

Definition at line 108 of file async_writer.hpp.


Member Data Documentation

boost::posix_time::ptime moost::io::timeofday_rollover::m_next_rollover [private]

Definition at line 88 of file async_writer.hpp.

boost::posix_time::time_duration moost::io::timeofday_rollover::m_rollover_timeofday [private]

Definition at line 87 of file async_writer.hpp.


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