22 lines
658 B
C++
22 lines
658 B
C++
#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;
|
|
}; |