mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
work-in progress Helper and keyboard shortcuts
This commit is contained in:
40
SessionParser.h
Normal file
40
SessionParser.h
Normal 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
|
||||
Reference in New Issue
Block a user