27 #ifndef Common_Crontab_h
28 #define Common_Crontab_h
109 bool zero_based =
true);
132 #endif // Common_Crontab_h
time_t next_event(time_t now)
Retrieves the timestamp of the next event.
std::string String
A String is simply a typedef to std::string.
void parse_entry(const String &spec, crontab_entry *_entry)
Parses a crontab spec into a crontab_entry.
Binary representation of crontab spec.
Tracks timing of periodic events.
std::ostream & operator<<(std::ostream &os, const crontab_entry &entry)
Helper function to write crontab_entry to an ostream.
void parse_range(const String &spec, std::bitset< N > &bits, bool zero_based=true)
Parses a crontab field and sets corresponding bits in bits.
A String class based on std::string.
Crontab()
Default constructor.
void next_matching_day(struct tm *next_tm, bool increment)
Determines next day on which event will occur.
void reconstruct_spec(const std::bitset< N > &bits, String &spec)
Converts binary crontab spec back into string spec.
crontab_entry & entry()
Get the internal crontab_entry structure.