Nori
|
#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 NORI_REGISTER_CLASS | ( | cls, | |
name | |||
) |
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.