// // Created by Stepan Usatiuk on 14.04.2023. // #ifndef SEMBACKUP_ARCHIVE_H #define SEMBACKUP_ARCHIVE_H #include #include "../Object.h" /// Object representing a backup class Archive final : public Object { public: Archive(Object::idType id, std::string name, unsigned long long mtime, std::vector files); /// \copydoc Object::serialize Archive(std::vector::const_iterator &in, const std::vector::const_iterator &end); void serialize(std::vector &out) const override; /// Returns the name of the archive std::string getKey() const override; /// Returns the files in this archive const std::vector &getRefs() const override; const std::string name; ///< Archive name const unsigned long long mtime; ///< Time of creation const std::vector files;///< List of ids of File objects in the Archive }; #endif//SEMBACKUP_ARCHIVE_H