#include <msp/core/noncopyable.h>
#include <msp/core/refptr.h>
#include "collectionsource.h"
+#include "mspdatafile_api.h"
#include "objectloader.h"
namespace Msp {
an object from such a file is requested, the entire sub-collection it is stored
in is loaded.
*/
-class PackSource: public CollectionSource
+class MSPDATAFILE_API PackSource: public CollectionSource
{
public:
struct FileInfo
public:
Loader(File &);
private:
- virtual void finish();
+ void finish() override;
void object(const std::string &, const std::string &);
};
/// Returns information about the files in the pack.
std::list<FileInfo> list_files() const;
- virtual bool is_loadable(const CollectionItemTypeBase &, const std::string &) const;
- virtual NameList get_names(const CollectionItemTypeBase &) const;
- virtual void load(Collection &, const CollectionItemTypeBase &, const std::string &) const;
- virtual IO::Seekable *open(const std::string &) const;
+ bool is_loadable(const CollectionItemTypeBase &, const std::string &) const override;
+ NameList get_names(const CollectionItemTypeBase &) const override;
+ void load(Collection &, const CollectionItemTypeBase &, const std::string &) const override;
+ IO::Seekable *open(const std::string &) const override;
};
} // namespace DataFile