#include <map>
#include <string>
#include <vector>
+#include <msp/core/attributes.h>
#include <msp/core/maputils.h>
#include <msp/core/noncopyable.h>
Associates types with keywords for adding to a Loader. The target Loader class
must be given as a template parameter, as well as a helper template struct to
handle the actual adding of keywords.
+
+Deprecated; use TypeRegistry from mspcore instead.
*/
template<typename L, template<typename> class A>
-class LoadableTypeRegistry: private NonCopyable
+class DEPRECATED LoadableTypeRegistry: private NonCopyable
{
private:
class TypeBase
void add_all(L &) const;
};
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
template<typename L, template<typename> class A>
LoadableTypeRegistry<L, A>::~LoadableTypeRegistry()
{
for(typename TypeMap::const_iterator i=types.begin(); i!=types.end(); ++i)
i->second->add(ldr);
}
+#pragma GCC diagnostic pop
} // namespace DataFile
} // namespace Msp