1 #ifndef MSP_DATAFILE_BUILTINSOURCE_H_
2 #define MSP_DATAFILE_BUILTINSOURCE_H_
4 #include "collectionsource.h"
9 class BuiltinSource: public CollectionSource
18 Object(const char *, unsigned);
21 std::map<std::string, Object> objects;
24 void add_object(const std::string &, const char *, unsigned);
25 void add_object(const std::string &, const char *);
27 virtual bool is_loadable(const CollectionItemTypeBase &, const std::string &) const;
28 virtual NameList get_names(const CollectionItemTypeBase &) const;
29 virtual void load(Collection &, const CollectionItemTypeBase &, const std::string &) const;
30 virtual IO::Seekable *open(const std::string &) const;
33 } // namespace DataFile