mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 23:40:02 +01:00
41 lines
799 B
C++
41 lines
799 B
C++
#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
|