Пока не билдится

This commit is contained in:
2025-02-02 11:58:56 +05:00
parent 9751db9617
commit 11ea3a8cd8
5 changed files with 94 additions and 4 deletions

22
src/book.hpp Normal file
View File

@@ -0,0 +1,22 @@
#pragma db object
class Book {
public:
Book() = default;
Book(const std::string& title, const std::string& author, const std::string& filePath,
int fileSize, const std::string& format);
const std::string& getTitle() const { return title; }
const std::string& getAuthor() const { return author; }
const std::string& getFilePath() const { return filePath; }
int getFileSize() const { return fileSize; }
const std::string& getFormat() const { return format; }
private:
#pragma db id auto
int id;
std::string title;
std::string author;
std::string filePath;
int fileSize;
std::string format;
};