export_plugin.hh File Reference

#include <boost/any.hpp>
#include <string>
#include <map>
#include <utilmm/plugin/concrete_factory.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;                                    \
    }

 
#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 Feb 19 10:51:01 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page