* Allow clock time for command scheduler interval and start time using

the format "hh:mm:ss".


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@627 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-01-25 21:23:46 +00:00
parent 305e3bdf2b
commit c89ae513ef
6 changed files with 118 additions and 12 deletions
+6
View File
@@ -46,6 +46,7 @@ class CommandSchedulerItem;
class CommandScheduler : public std::vector<CommandSchedulerItem*> {
public:
typedef rak::function1<void, const std::string&> SlotString;
typedef std::pair<int, int> Time;
typedef std::vector<CommandSchedulerItem*> base_type;
using base_type::value_type;
@@ -67,6 +68,11 @@ public:
iterator insert(const std::string& key);
void erase(iterator itr);
static uint32_t parse_absolute(const char* str);
static uint32_t parse_interval(const char* str);
static Time parse_time(const char* str);
private:
void call_item(value_type item);