Share

ACRX_DEFINE_MEMBERS

C++

#define ACRX_DEFINE_MEMBERS(CLASS_NAME) \
ACRX_DEFINE_MEMBERS_WORKER(CLASS_NAME, ACRX_AUTO_INIT_DEFAULT)

File

rxboiler.h

Description

This macro is primarily used inside of the other "body" macros to define most of the required ObjectARX overhead functions. This macro defines all required functions except for the rxInit() function. This macro may be used instead of the ACRX_NO_CONS_DEFINE_MEMBERS or ACRX_CONS_DEFINE_MEMBERS macros in order to create a class definition that is complete enough to be used as an "API" library for others to create their own applications using the class, but because the rxInit() function is not defined, there is no way for such applications to add the class to the run-time tree. So, the main application is necessary to do this.

The ClassName argument must be the name of the class in whose declaration the macro is included.

The ClassName argument should not be in quotes. If quotes are used, they will be treated as part of the actual ClassName string. Also, ClassName is case-sensitive.

The macro defines:

AcRxClass* CLASS_NAME::desc()
AcRxClass* CLASS_NAME::isA() const
AcRxClass* CLASS_NAME::gpDesc = NULL

Note When used, this macro must be terminated by a semicolon (';').

ACRX_DEFINE_MEMBERS(MyClass);

CLASS_NAME : Input name of the class being declared

Was this information helpful?