Share

AcRxService

Class Hierarchy

AcRxObject
    AcRxService
        AcEdServices
        AcRxKernel
        AcRxProtocolReactorManagerFactory

C++

class AcRxService : public AcRxObject;

File

rxsrvice.h

Description

Objects of the AcRxService class are used internally as part of the registered service system in ObjectARX. Although it is possible for an ObjectARX program to instantiate objects of this class, it is not often done, since the global function acrxRegisterService() encapsulates the creation of an AcRxService object and its addition to the global service dictionary.

From an ObjectARX program's perspective, the AcRxService objects provide a platform independent way to access symbols in other ObjectARX programs (although this functionality is accessible via the global function acrxGetServiceSymbolAddr() rather than through any AcRxService class methods) and a mechanism to register dependencies on a service which the ObjectARX application behind the service can then use to determine if it can safely unload or not.

Remarks

The existing AcRxService objects in use by the system can be accessed from the global service dictionary by using the acrxServiceDictionary macro to get a pointer to the dictionary and then using the AcRxDictionary'sat() method to search for an entry based on the service name it was registered with:

AcRxService::cast(acrxServiceDictionary->at(serviceName));

Links

AcRxService Methods

See Also

AcRxDynamicLinker, acrxRegisterService, acrxServiceDictionary

Was this information helpful?