summaryrefslogtreecommitdiff
path: root/xml-cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'xml-cache.h')
-rw-r--r--xml-cache.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/xml-cache.h b/xml-cache.h
new file mode 100644
index 0000000..9f364bf
--- /dev/null
+++ b/xml-cache.h
@@ -0,0 +1,33 @@
+/*
+ * xml-cache.h
+ */
+
+#ifndef __XML_CACHE_H
+#define __XML_CACHE_H
+
+#include "xml-base.h"
+#include "trackinfo.h"
+
+#include <unistd.h>
+
+#include <string>
+
+#include <iostream>
+
+
+
+class cXmlCache: public cXmlBase {
+private:
+ void rebuild_track(const std::string &path, const char *date,
+ const char *time);
+protected:
+ virtual void copy_to_objects(void);
+public:
+ cXmlCache(void);
+
+ void ReadDir(int level, std::string path);
+ void rebuild(void);
+ void add_track(const cTrackInfo &trackinfo, bool save = true);
+};
+
+#endif /* __XML_CACHE_H */