Share

AcRxDLinkerReactor

Class Hierarchy

AcRxObject
    AcRxDLinkerReactor

C++

class AcRxDLinkerReactor : public AcRxObject;

File

rxdlinkr.h

Description

This class defines the notification events that come from the ObjectARX dynamic linker, which are notification for loading and unloading of ObjectARX applications. Recipients of these calls should also check the registered services, classes, and objects to find out what happened to logical events of the system, rather than being bound to the file name that the linker has loaded or unloaded.

To use the class, simply define a class derived from the AcRxDLinkerReactor class and supply methods for the public member functions rxAppLoaded() and rxAppUnloaded(). For example:

class AppReactor: public AcRxDLinkerReactor {
public:
    virtual void
    rxAppLoaded(
        const char* moduleName);
    {
        acutPrintf("Event: rxAppLoaded '%s'n", moduleName);
    }
    virtual void
    rxAppUnloaded(
        const char* moduleName);
    {
        acutPrintf("Event: rxAppUnloaded '%s'n", moduleName);
    }
};

AppReactor* apprtest = NULL;
void enableNotification() {
    acrxDynamicLinker->addReactor(apprtest);
}

void disableNotification() {
    acrxDynamicLinker->removeReactor(apprtest);
}

Links

AcRxDLinkerReactor Methods

See Also

AcRxDynamicLinker

Was this information helpful?