Class TDSSClass
Unit
Declaration
type TDSSClass = class(TObject)
Description
Base for all collection classes
Hierarchy
- TObject
- TDSSClass
Overview
Nested Types
THashListType = TAltHashList; |
Fields
ActiveElement: Integer; |
|
ActiveProperty: Integer; |
|
ElementNameList: THashListType; |
|
DSS: TDSSContext; |
|
ClassParents: TStringList; |
|
Class_Name: String; |
|
CommandList: TCommandlist; |
|
NumProperties: Integer; |
|
PropertyName: pStringArray; |
|
PropertyRedundantWith: pIntegerArray; |
|
PropertySource: pStringArray; |
|
PropertyScale: pDoubleArray; |
|
PropertyValueOffset: pDoubleArray; |
|
PropertyTrapZero: pDoubleArray; |
|
PropertyInverse: pBooleanArray; |
|
PropertyType: pPropertyTypeArray; |
|
PropertyWriteFunction: PPointerArray; |
|
PropertyReadFunction: PPointerArray; |
|
PropertyOffset: pPtrIntArray; |
|
PropertyOffset2: pPtrIntArray; |
|
PropertyOffset3: pPtrIntArray; |
|
PropertyStructArrayIndexOffset: PtrUint; |
|
PropertyStructArrayIndexOffset2: PtrUint; |
|
PropertyStructArrayOffset: PtrUint; |
|
PropertyStructArrayStep: PtrUint; |
|
PropertyStructArrayCountOffset: PtrUint; |
|
PropertyFlags: Array of TPropertyFlags; |
|
DSSClassType: Integer; |
|
ElementList: TDSSPointerList; |
|
ElementNamesOutOfSynch: Boolean; |
|
Saved: Boolean; |
Methods
Function AddObjectToList(Obj:Pointer; Activate: Boolean = True):Integer; |
|
Function Get_FirstPropertyName:String; |
|
Function Get_NextPropertyName:String; |
|
Procedure CountPropertiesAndAllocate; virtual; |
|
procedure DefineProperties; virtual; |
|
procedure PopulatePropertyNames(PropOffset: Integer; NumProps: Integer; EnumInfo: Pointer; ReplacePct: Boolean = True; PropSource: String = ''); |
|
constructor Create(dssContext: TDSSContext; DSSClsType: Integer; DSSClsName: String); |
|
destructor Destroy; override; |
|
Procedure ReallocateElementNameList; |
|
function BeginEdit(ptr: Pointer; SetActive: Boolean=True): Pointer; virtual; |
|
function EndEdit(ptr: Pointer; const NumChanges: integer): Boolean; virtual; |
|
function Edit(Parser: TDSSParser): Integer; |
|
function NewObject(const ObjName: String; Activate: Boolean = True):Pointer; Virtual; overload; |
|
function NewObject(const ObjName: String; Activate: Boolean; out Idx: Integer):Pointer; overload; |
|
Function SetActive(const ObjName:String):Boolean; |
|
Function GetActiveObj:Pointer; |
|
Function Find(const ObjName:String; const ChangeActive: Boolean=True): Pointer; virtual; |
|
Function PropertyIndex(Const Prop:String):Integer; |
|
function GetPropertyHelp(idx: Integer): String; |
|
procedure DoErrorMsg(Const S, Emsg, ProbCause: String; ErrNum: Integer); inline; |
|
procedure DoSimpleMsg(Const S: String; ErrNum:Integer); inline; overload; |
|
procedure DoSimpleMsg(Const S: String; fmtArgs: Array of Const; ErrNum:Integer); inline; overload; |
Properties
property FirstPropertyName: String read Get_FirstPropertyName; |
|
property NextPropertyName: String read Get_NextPropertyName; |
|
property Active: Integer read ActiveElement write Set_Active; |
|
property ElementCount: Integer read Get_ElementCount; |
|
property First: Integer read Get_First; |
|
property Next: Integer read Get_Next; |
|
property Name: String read Class_Name; |
Description
Nested Types
THashListType = TAltHashList; |
|
Fields
ActiveElement: Integer; |
|
ActiveProperty: Integer; |
|
index of present ActiveElement |
ElementNameList: THashListType; |
|
DSS: TDSSContext; |
|
ClassParents: TStringList; |
|
Class_Name: String; |
|
CommandList: TCommandlist; |
|
NumProperties: Integer; |
|
PropertyName: pStringArray; |
|
TODO: move to array of records |
PropertyRedundantWith: pIntegerArray; |
|
PropertySource: pStringArray; |
|
PropertyScale: pDoubleArray; |
|
PropertyValueOffset: pDoubleArray; |
|
PropertyTrapZero: pDoubleArray; |
|
PropertyInverse: pBooleanArray; |
|
PropertyType: pPropertyTypeArray; |
|
PropertyWriteFunction: PPointerArray; |
|
PropertyReadFunction: PPointerArray; |
|
PropertyOffset: pPtrIntArray; |
|
PropertyOffset2: pPtrIntArray; |
|
For most simple properties |
PropertyOffset3: pPtrIntArray; |
|
For separate complex quantities, double-on-array, ... |
PropertyStructArrayIndexOffset: PtrUint; |
|
For setters in e.g. object refs |
PropertyStructArrayIndexOffset2: PtrUint; |
|
For setters in e.g. object refs |
PropertyStructArrayOffset: PtrUint; |
|
For setters in e.g. object refs |
PropertyStructArrayStep: PtrUint; |
|
For setters in e.g. object refs |
PropertyStructArrayCountOffset: PtrUint; |
|
For setters in e.g. object refs |
PropertyFlags: Array of TPropertyFlags; |
|
DSSClassType: Integer; |
|
TODO: 0 is unused until things are migrated later |
ElementList: TDSSPointerList; |
|
ElementNamesOutOfSynch: Boolean; |
|
Saved: Boolean; |
|
When device gets renamed |
Methods
Function AddObjectToList(Obj:Pointer; Activate: Boolean = True):Integer; |
|
Function Get_FirstPropertyName:String; |
|
Used by NewObject |
Function Get_NextPropertyName:String; |
|
Procedure CountPropertiesAndAllocate; virtual; |
|
procedure DefineProperties; virtual; |
|
procedure PopulatePropertyNames(PropOffset: Integer; NumProps: Integer; EnumInfo: Pointer; ReplacePct: Boolean = True; PropSource: String = ''); |
|
constructor Create(dssContext: TDSSContext; DSSClsType: Integer; DSSClsName: String); |
|
destructor Destroy; override; |
|
Procedure ReallocateElementNameList; |
|
function BeginEdit(ptr: Pointer; SetActive: Boolean=True): Pointer; virtual; |
|
function CustomParse(ptr: Pointer; Idx: Integer; Param: String): Boolean; virtual; |
function EndEdit(ptr: Pointer; const NumChanges: integer): Boolean; virtual; |
|
function Edit(Parser: TDSSParser): Integer; |
|
function NewObject(const ObjName: String; Activate: Boolean = True):Pointer; Virtual; overload; |
|
function NewObject(const ObjName: String; Activate: Boolean; out Idx: Integer):Pointer; overload; |
|
Function SetActive(const ObjName:String):Boolean; |
|
for compatibility, when the index is required |
Function GetActiveObj:Pointer; |
|
Function Find(const ObjName:String; const ChangeActive: Boolean=True): Pointer; virtual; |
|
Get address of active obj of this class |
Function PropertyIndex(Const Prop:String):Integer; |
|
Find an obj of this class by name |
function GetPropertyHelp(idx: Integer): String; |
|
procedure DoErrorMsg(Const S, Emsg, ProbCause: String; ErrNum: Integer); inline; |
|
DSSContext convenience functions |
procedure DoSimpleMsg(Const S: String; ErrNum:Integer); inline; overload; |
|
procedure DoSimpleMsg(Const S: String; fmtArgs: Array of Const; ErrNum:Integer); inline; overload; |
|
Properties
property FirstPropertyName: String read Get_FirstPropertyName; |
|
property NextPropertyName: String read Get_NextPropertyName; |
|
property Active: Integer read ActiveElement write Set_Active; |
|
property ElementCount: Integer read Get_ElementCount; |
|
property First: Integer read Get_First; |
|
property Next: Integer read Get_Next; |
|
property Name: String read Class_Name; |
|
Generated by PasDoc 0.16.0.