work-in progress Helper and keyboard shortcuts

This commit is contained in:
Bruno
2021-08-26 15:51:07 +02:00
parent 7fb6e57829
commit 06187b9a1a
9 changed files with 350 additions and 52 deletions

40
SessionParser.h Normal file
View File

@@ -0,0 +1,40 @@
#ifndef SESSIONPARSER_H
#define SESSIONPARSER_H
#include <map>
#include <string>
#include <tinyxml2.h>
class Session;
//struct SessionInformation {
// std::string description;
// FrameBufferImage *thumbnail;
// bool user_thumbnail_;
// SessionInformation() {
// description = "";
// thumbnail = nullptr;
// user_thumbnail_ = false;
// }
//};
class SessionParser
{
public:
SessionParser();
bool open(const std::string& filename);
bool save();
std::map<uint64_t, std::pair<std::string, bool> > pathList() const;
void replacePath(uint64_t id, const std::string &path);
// static SessionInformation info(const std::string& filename);
private:
tinyxml2::XMLDocument xmlDoc_;
std::string filename_;
};
#endif // SESSIONPARSER_H