Share

ACRX_NO_CONS_DEFINE_MEMBERS

C++

#define ACRX_NO_CONS_DEFINE_MEMBERS(CLASS_NAME,PARENT_CLASS) \
ACRX_NO_CONS_DEFINE_MEMBERS_WORKER(ACRX_AUTO_INIT_DEFAULT,CLASS_NAME, PARENT_CLASS)

File

rxboiler.h

Description

This macro is used to define the required ObjectARX overhead functions for a class that will be an abstract base class ("NO_CONS" is short for "no constructor").

The ClassName argument must be the name of the class in whose declaration the macro is included. The ParentClassName argument must be the name of the ClassName base class that is in the ObjectARX run-time tree.

Neither of the arguments should be in quotes. If quotes are used, they will be treated as part of the actual string. Also, the arguments are case-sensitive.

The macro uses the ACRX_DEFINE_MEMBERS macro to define desc(), isA(), and gpDesc. In addition it also defines:

void CLASS_NAME::rxInit()

Note When used, this macro does not need to be terminated by a semicolon (';'), but it may be used without any problems:

ACRX_NO_CONS_DEFINE_MEMBERS(ClassName, ParentClassName)

or

ACRX_NO_CONS_DEFINE_MEMBERS(ClassName, ParentClassName);

CLASS_NAME : Input name of the class being declared PARENT_CLASS : Input name of the ObjectARX tree-resident base class

Was this information helpful?