Defines
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.

Defines

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

Define 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() {                                        \
              static utilmm::plugin::concrete_factory<BaseType, ActualType> cf;  \
              utilmm::plugin::abstract_factory<BaseType>* w = &cf;              \
                boost_exported_plugins_list().insert(std::make_pair(name, w)); \
            }                                                                 \
        } boost_plugin_exporter_instance1;                                    \
    }

Definition at line 15 of file export_plugin.hh.

Value:
extern "C" std::map<std::string, boost::any>& boost_exported_plugins_list() \
{                                                                           \
    static std::map<std::string, boost::any> r;                             \
    return r;                                                               \
}

Definition at line 27 of file export_plugin.hh.



utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Oct 6 2014 03:17:01