svvitch
digital signage player
D:/vs_workspace/switch_sf/src/svvitch/Schedule.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include <Poco/Logger.h>
00004 #include <Poco/LocalDateTime.h>
00005 
00006 using std::string;
00007 using Poco::LocalDateTime;
00008 
00009 
00014 class Schedule {
00015 private:
00016     Poco::Logger& _log;
00017 
00018     string _id;
00019     int _year;
00020     int _month;
00021     int _day;
00022     int _hour;
00023     int _minute;
00024     int _second;
00025     int _week;
00026     string _command;
00027 
00028 public:
00029     Schedule(const string id, const int year, const int month, const int day, const int hour, const int minute, const int second, const int week, const string command);
00030     ‾Schedule();
00031 
00033     bool Schedule::matchDate(LocalDateTime time);
00034 
00036     bool match(LocalDateTime time);
00037 
00039     bool matchPast(LocalDateTime time);
00040 
00042     const string& command() const;
00043 };
00044 
00045 typedef Schedule* SchedulePtr;
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines