From 15c0132fd080003f2bf47749e30e1f724b249341 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 29 Mar 2010 07:30:52 +0200 Subject: dynamic registration of songloading_strategies with static template --- src/base/songloading/songloading_strategy_xml.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/base/songloading/songloading_strategy_xml.hpp') diff --git a/src/base/songloading/songloading_strategy_xml.hpp b/src/base/songloading/songloading_strategy_xml.hpp index 76e3f76e..38637646 100644 --- a/src/base/songloading/songloading_strategy_xml.hpp +++ b/src/base/songloading/songloading_strategy_xml.hpp @@ -29,6 +29,7 @@ #include #include "songloading_strategy.hpp" +#include "songloading_strategy_factory.hpp" namespace usdx { @@ -40,7 +41,11 @@ namespace usdx virtual Song* load_song(Song* song); virtual Song* load_header(const boost::filesystem::wpath& filename); + + static std::wstring get_fileextension(void) { return L".xml"; }; }; + + REGISTER_SONGLOADING_STRATEGY(SongloadingStrategyXml); }; #endif -- cgit v1.2.3