libmoost
/home/mhx/git/github/libmoost/include/moost/pdl/dynamic_class.h File Reference
#include <boost/shared_ptr.hpp>
#include <boost/noncopyable.hpp>
#include "platform.h"
Include dependency graph for dynamic_class.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  moost::pdl::dynamic_class

Namespaces

namespace  moost
 

Creates a unique temporary directory; removed on scope exit.


namespace  moost::pdl

Defines

#define PDL_EXPORT_DYNAMIC_CLASS(class_name)

Define Documentation

#define PDL_EXPORT_DYNAMIC_CLASS (   class_name)
Value:
extern "C" PDL_DECL_EXPORT ::moost::pdl::dynamic_class *PDL_create_ ## class_name() \
   {                                \
      try                           \
      {                             \
         return new class_name();   \
      }                             \
      catch (...)                   \
      {                             \
      }                             \
      return 0;                     \
   }

Export constructor for dynamically loaded class

Call this export macro once per plugin for every class that is supposed to be exported.

Definition at line 71 of file dynamic_class.h.