#include <ClassInitAttribute.h>
Inheritance diagram for acdk::tools::mc::ClassInitAttribute:
The initialization and deinitialization methods must be exported DMI-Methods [private/protected/public] static void methodname(); Only one initialization and deinitialization method can be declared per class. The name of the method is either a fully qualified method name (namespace.class.method) or the name of the method only if the method is defined in the attributed class. Sample:
namespace my { namespace package { ACDK_CLASSATTRIBUTE(acdk.tools.mc.ClassInitAttribute(: initFunction = my.package.MyClass.classInit)) class MY_PACKAGE_PUBLIC MyClass : extends acdk::lang::Object { private: static void classInit() { // make class wide initialization here } };
Public Member Functions | |
ClassInitAttribute (IN(RString) initFunction=Nil, IN(RString) deinitFunction=Nil) | |
virtual bool | apply (IN(RCodeInfo) cm) |
Static Public Member Functions | |
void | initAttribute (IN(RMetaCompiler) mc) |
Public Attributes | |
RString | _initFunction |
RString | _deinitFunction |
|
|
|
Reimplemented from acdk::tools::mc::CodeAttribute. |
|
Reimplemented from acdk::tools::mc::CodeAttribute. |
|
|
|
|