Nori

include/nori/object.h File Reference

#include <nori/proplist.h>
#include <boost/function.hpp>

Go to the source code of this file.

Classes

class  NoriObject
 Base class of all objects. More...
class  NoriObjectFactory
 Factory for Nori objects. More...

Defines

#define NORI_REGISTER_CLASS(cls, name)
 Macro for registering an object constructor with the NoriObjectFactory.

Define Documentation

#define NORI_REGISTER_CLASS (   cls,
  name 
)
Value:
cls *cls ##_create(const PropertyList &list) { \
                return new cls(list); \
        } \
        static struct cls ##_{ \
                cls ##_() { \
                        NoriObjectFactory::registerClass(name, cls ##_create); \
                } \
        } cls ##__;

Macro for registering an object constructor with the NoriObjectFactory.

Definition at line 154 of file object.h.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines