Back to index

nux  3.0.0
Classes | Namespaces | Defines
ObjectType.h File Reference
#include <string>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nux::NObjectType

Namespaces

namespace  nux
 The Writer singleton is responsible for controlling where the logging message go.

Defines

#define NUX_DECLARE_OBJECT_TYPE(TypeName, SuperType)
#define NUX_IMPLEMENT_OBJECT_TYPE(TypeName)   ::nux::NObjectType TypeName::StaticObjectType(#TypeName, &TypeName::SuperObject::StaticObjectType);
#define NUX_DECLARE_ROOT_OBJECT_TYPE(TypeName)
#define NUX_IMPLEMENT_ROOT_OBJECT_TYPE(TypeName)   ::nux::NObjectType TypeName::StaticObjectType(#TypeName, 0);

Define Documentation

#define NUX_DECLARE_OBJECT_TYPE (   TypeName,
  SuperType 
)
Value:
public:                                                                 \
    typedef SuperType SuperObject;                                          \
    static ::nux::NObjectType StaticObjectType;                         \
    public:                                                                 \
    virtual ::nux::NObjectType& Type() const { return StaticObjectType; }          \
    ::nux::NObjectType& GetTypeInfo() const { return StaticObjectType; }

Definition at line 103 of file ObjectType.h.

#define NUX_DECLARE_ROOT_OBJECT_TYPE (   TypeName)
Value:
public:                                                                 \
    typedef ::nux::NObjectType SuperObject;                                        \
    static ::nux::NObjectType StaticObjectType;                                    \
    public:                                                                 \
    virtual ::nux::NObjectType& Type() const { return StaticObjectType; }          \
    ::nux::NObjectType& GetTypeInfo() const { return StaticObjectType; }

Definition at line 115 of file ObjectType.h.

#define NUX_IMPLEMENT_OBJECT_TYPE (   TypeName)    ::nux::NObjectType TypeName::StaticObjectType(#TypeName, &TypeName::SuperObject::StaticObjectType);

Definition at line 112 of file ObjectType.h.

#define NUX_IMPLEMENT_ROOT_OBJECT_TYPE (   TypeName)    ::nux::NObjectType TypeName::StaticObjectType(#TypeName, 0);

Definition at line 123 of file ObjectType.h.