libmoost
|
#include <async_writer.hpp>
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 |
rolls over once at a specified time of day
Definition at line 83 of file async_writer.hpp.
moost::io::timeofday_rollover::timeofday_rollover | ( | int | hour = 0 , |
int | minute = 0 , |
||
int | second = 0 |
||
) | [inline] |
constructs a timeofday_rollover
hour | the hour of the day to roll over |
minute | the minute of the day to roll over |
second | the second of the day to roll over |
Definition at line 97 of file async_writer.hpp.
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.
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.