API Reference
stMemoryMapFiler
Memory Map Filer Unit
Classes, interfaces and records
classeMappedObjectError
inherits from Exception
(no public members)
classeMemoryMapFilerError
inherits from Exception
(no public members)
classtMappedObject
(no public members)
classtMappedObject
inherits from tObject
destructor Destroy; override;
class function MetaDataInCode: Boolean; virtual;
Always returns False.
procedure Assign(aSource: tMappedObject; aAddMustResolve: tAddMustResolveEvent = nil); virtual;
function Clone: tMappedObject;
function ObjSupports(const aIID: TGUID; var aObj): Boolean;
Delegates to GetInterface, forwarding aIID and aObj, and returns its result.
property Identifier: string read fIdentifier;
procedure AfterConstruction; override;
function ClassType: tMappedObjectClass; reintroduce;
Delegates to tMappedObjectClass, passing 1 argument(s), and returns its result.
procedure BeforeDestruction; override;
interfaceiBaseInterface
inherits from IInterface
Common interface implemented by every tMappedObject-derived class (e.g. key-format and key-bucket classes in StreamSec.DSI.KeyManager). Application code almost never calls these members directly by name; instead the framework queries them generically via Supports(anObject, iBaseInterface, lIntf), e.g. when the key manager enumerates its registered key formats. This is internal wiring, not an application-facing API in its own right.
function GetInstance: tMappedObject;
Returns the implementing tMappedObject instance itself; used by generic code that only holds an iBaseInterface reference but needs the concrete object, e.g. to pass it on to APIs that expect a tMappedObject.
function GetIdentifier: string;
Getter for Identifier below.
function GetModuleName: string;
Getter for ModuleName below.
function GetQualifiedTypeName: string;
Getter for QualifiedTypeName below.
function GetIntfTypeName: string;
Getter for IntfTypeName below.
procedure Assign(aSource : tMappedObject; aAddMustResolve: tAddMustResolveEvent = nil);
Copies metadata (module name, type name, identifier) from aSource into the implementing object; used internally when cloning or reconstructing mapped objects, not something application code typically calls directly.
procedure ClearModuleName;
Clears the exported module name/identifier metadata on the implementing object; internal bookkeeping, not normally called by application code.
function Clone: tMappedObject;
Produces a duplicate of the implementing tMappedObject; used by the framework where a fresh, independent instance of a registered class (e.g. a key format) is needed.
function CloneAsItem(aOwner: tMappedObject): tMappedObject;
Like Clone, but lets the framework parent the new instance under aOwner; used internally, application code rarely calls this directly.
function ObjSupports(const aIID: TGUID; var aObj): Boolean;
Queries the implementing object for another interface: a thin wrapper over GetInterface that returns True and fills aObj when the object supports aIID. Called directly on an iBaseInterface reference (see stDERUtils/stDER/stCustomProtoComp), not through the RTL Supports routine.
property Identifier: string read GetIdentifier;
The object's registered name; set via the metadata/registration machinery rather than by application code.
property ModuleName: string read GetModuleName;
Optional namespace/module tag attached when an object is exported as metadata; empty unless that export path assigned one.
property QualifiedTypeName: string read GetQualifiedTypeName;
The fully-qualified type name (ModuleName plus type/interface name), used as the persisted format tag: StreamSec.DSI.KeyManager writes this string into a key store to identify which key-format class produced a key, and looks it up again by this same string when reading it back.
property IntfTypeName: string read GetIntfTypeName;
The name of the interface an object represents (as opposed to the concrete class); backs GetQualifiedIntfTypeName (ModuleName plus this name). For ASN.1 declarations it is the interface name the code generator emits (see IDE\stAsn1ToPascal and stDER), and it also serves as a fallback when QualifiedTypeName has no explicit type name.
classtObjectMapping
inherits from tMappedObject
implements iBaseInterface
procedure AfterConstruction; override;
procedure BeforeDestruction; override;
Marks the object as being destroyed, so that a reference to it taken and released while a destructor runs - passing Self where an interface is expected takes one - does not bring the count back to 0 and destroy the object a second time, inside its own destructor.
class function NewInstance: TObject; override;{$IFDEF AUTOREFCOUNT} unsafe; {$ENDIF} {$ENDIF} end;
function FindMappedClass(const aRegisterClassName: string): tMappedObjectClass;
function InstanceCount: Integer;
Types (enumerations, sets, aliases)
typeIntPtr
IntPtr = Int64;
typeIntPtr
IntPtr = LongInt;
typeOctetChar
OctetChar = Byte;
typeAnsiString
AnsiString = type string;
typeAnsiChar
AnsiChar = Char;
typePAnsiChar
PAnsiChar = PChar;
typeOctetChar
OctetChar = AnsiChar;
typetByteArray
tByteArray = TBytes;
arraytByteArray
tByteArray = array of Byte;
arraytByteArray
tByteArray = array of Byte;
typepLongInt
pLongInt = ^LongInt;
proctAddMustResolveEvent
tAddMustResolveEvent = procedure (aName: tStrings;
aToResolve: tMappedObject) of object;
typetIndex
tIndex = LongInt;
typetMappedObjectClass
tMappedObjectClass = class of tMappedObject;
typeQualifiedName
QualifiedName = string;
arraytIntfArray
tIntfArray = array of iBaseInterface;
arraytIntfArrayList
tIntfArrayList = array of tIntfArray;