1 #ifndef MSP_DATAFILE_BUILTINSOURCE_H_
2 #define MSP_DATAFILE_BUILTINSOURCE_H_
4 #include "collectionsource.h"
5 #include "mspdatafile_api.h"
10 class MSPDATAFILE_API BuiltinSource: public CollectionSource
15 const char *data = nullptr;
19 Object(const char *, std::size_t);
22 std::map<std::string, Object> objects;
25 void add_object(const std::string &, const char *, std::size_t);
26 void add_object(const std::string &, const char *);
28 bool is_loadable(const CollectionItemTypeBase &, const std::string &) const override;
29 NameList get_names(const CollectionItemTypeBase &) const override;
30 void load(Collection &, const CollectionItemTypeBase &, const std::string &) const override;
31 IO::Seekable *open(const std::string &) const override;
34 } // namespace DataFile