Share

AcDbAuditRecreatePE

Class Hierarchy

AcRxObject
    AcDbAuditRecreatePE

C++

class AcDbAuditRecreatePE : public AcRxObject;

File

dbAuditRecreate.h

Description

This class defines the Runtime Extension Protocol for audit-time object recreation.

The contract is rather simple, although the implementation may be less so. Member functions are invoked from the AcDb library, in the context of RECOVER and/or AUDIT. The contract is:

When an object of a given class is requested via AcDbAuditInfo::fetchObject, and is not valid, then first, the PE object's replace() member is invoked. If it returns Acad::eOk and a new instance of a class, then that instance is placed in the original object ID, and the repair is finished.

If that fails, then the PE object's redirect() member is invoked. If it returns true, then the new object ID is entered into the indirect object lookup table. If redirect() returns false, then the object reference is no longer valid, and null is returned for a new object.

Instances of this class will be invoked from the Audit complex when an instance of a given class is to be "recreated" because an original one is missing.

Links

AcDbAuditRecreatePE Methods

Was this information helpful?