Пока не билдится
This commit is contained in:
22
src/book.hpp
Normal file
22
src/book.hpp
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user