initial commit

This commit is contained in:
2024-06-11 14:31:52 +02:00
commit b585be3679
9 changed files with 561 additions and 0 deletions

29
imagemeta.h Normal file
View File

@ -0,0 +1,29 @@
#ifndef IMAGEMETA_H
#define IMAGEMETA_H
#include <filesystem>
#include <QString>
#include <QJsonObject>
#include <QException>
class ParseException : public QException
{
QString msg;
public:
ParseException(const QString& msg): msg{msg} {}
QString getMesg() {return msg;};
void raise() const override { throw *this; }
ParseException *clone() const override { return new ParseException(*this); }
};
class ImageMeta
{
public:
std::filesystem::path path;
QString text;
ImageMeta(const std::filesystem::path& path, const QString& text = "");
ImageMeta(const QJsonObject& json, const std::filesystem::path& dir);
};
#endif // IMAGEMETA_H