Browse Source
updated event creation
updated event creation
- added filename to events - added util for epoch to dtime with format string - fixed bug in which epoch times would be parsed with gmtime instead of localtimemain
Stefan Pranger
3 years ago
4 changed files with 53 additions and 25 deletions
@ -1,26 +1,30 @@ |
|||
#pragma once |
|||
|
|||
#include <fstream> |
|||
#include <sstream> |
|||
#include <iostream> |
|||
#include <sstream> |
|||
#include <string> |
|||
|
|||
#include <libical/ical.h> |
|||
#include <ical/IcalObject.h> |
|||
#include <ical/Alarm.h> |
|||
#include <ical/Event.h> |
|||
#include <ical/IcalObject.h> |
|||
#include <libical/ical.h> |
|||
|
|||
#include <boost/filesystem.hpp> |
|||
|
|||
#include <io/debug.h> |
|||
|
|||
const std::string dtime_fmt = "%d.%m.%Y_%H:%M:%S"; |
|||
|
|||
namespace util { |
|||
std::vector<ical::IcalObject*> parse_cal_dir(std::string directory); |
|||
icalcomponent* parse_main_component(ical::IcalObject* object, icalcomponent* component); |
|||
void parse_component(ical::IcalObject* object, icalcomponent* component); |
|||
icalcomponent* parse_main_component(ical::IcalObject* object, icalcomponent* component, const std::string &file); |
|||
void parse_component(ical::IcalObject* object, icalcomponent* component, const std::string &file); |
|||
|
|||
std::string slurp(std::ifstream& in); |
|||
icalcomponent* parse_ics_file(std::string filename); |
|||
|
|||
|
|||
void debug(icalcomponent* component); |
|||
std::string date_string(const uint32_t &epoch, const std::string &format = "%c"); |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue