You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
832 B

#pragma once
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#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, 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");
}