Util--  1.1
Macros
export_plugin.hh File Reference
#include <boost/any.hpp>
#include <string>
#include <map>
#include <utilmm/plugin/concrete_factory.hh>
Include dependency graph for export_plugin.hh:

Go to the source code of this file.

Macros

#define BOOST_EXPORT_PLUGIN(BaseType, ActualType, name)
 
#define BOOST_EXPORT_PLUGIN_LIST()
 

Macro Definition Documentation

#define BOOST_EXPORT_PLUGIN (   BaseType,
  ActualType,
  name 
)
Value:
extern "C" std::map<std::string, boost::any>& boost_exported_plugins_list(); \
namespace { \
struct boost_plugin_exporter1 { \
boost_plugin_exporter1() { \
utilmm::plugin::abstract_factory<BaseType>* w = &cf; \
boost_exported_plugins_list().insert(std::make_pair(name, w)); \
} \
} boost_plugin_exporter_instance1; \
}
Definition: concrete_factory.hh:56
#define BOOST_EXPORT_PLUGIN_LIST ( )
Value:
extern "C" std::map<std::string, boost::any>& boost_exported_plugins_list() \
{ \
static std::map<std::string, boost::any> r; \
return r; \
}

Generated on Tue Oct 9 2018 10:12:45 for Util-- by doxygen 1.8.6
SourceForge.net Project Page