THYRODLReader
Overview
Use THYRODLReader in a Remoting SDK Server application for accessing the RODL definition of services declared and implemented in Hydra modules. This functionality can be useful because the plugins are typically developed after the host application, which means that the host application is not compiled with the RODL resource of all of its services.
Location
- Unit: Hydra.RO.RODLReader.pas
- Ancestry: TROCustomRODLReader | THYRODLReader
CreateEmptyRODL
Creates a new, empty RODL with given parameters.
function CreateEmptyRODL(const aLibraryName: string; const aLibraryDescription: string): ROUTF8String
Parameters:
- aLibraryName: Name of the new library.
- aLibraryDescription: Description of the new library.
DoReadRODLResource protected override
procedure DoReadRODLResource(aStream: TStream; aServiceGroup: string; aIgnoreErrors: Boolean)
Parameters:
- aStream:
- aServiceGroup:
- aIgnoreErrors:
HydraMainInstance
Gets or sets handle of the main module.
property HydraMainInstance: THandle read write
MergeRODLs
Merges main rodl with a list of sub-rodls.
procedure MergeRODLs(var MainRODL: ROUTF8String; const SubRODLs: array of ROUTF8String)
Parameters:
- MainRODL: String that holds main rodl definition.
- SubRODLs: Array of strings with sub rodls.
ModuleManager
Gets or sets reference to an instance of the module manager.
property ModuleManager: THYBaseModuleManager read write
ReadFullRODL overload
Retrieves all available RODL files and merges them into a single RODL.
function ReadFullRODL: ROUTF8String
ReadFullRODL (TRODLLibrary) overload
Retrieves all available RODL files and merges them into a single RODL.
procedure ReadFullRODL(out aLibrary: TRODLLibrary)
Parameters:
- aLibrary: Reference to a RODL structure.
ReadMainRODL overload
Reads main RODL file.
function ReadMainRODL: ROUTF8String
ReadMainRODL (TRODLLibrary) overload
Reads main RODL file.
procedure ReadMainRODL(out aLibrary: TRODLLibrary)
Parameters:
- aLibrary: Reference to a RODL structure.
ReadModuleRODL (THandle): ROUTF8String overload
Reads RODL from a specified module.
function ReadModuleRODL(aModuleHandle: THandle): ROUTF8String
Parameters:
- aModuleHandle: Handle of the module.
ReadModuleRODL (THandle, TRODLLibrary) overload
Reads RODL from a specified module.
procedure ReadModuleRODL(aModuleHandle: THandle; out aLibrary: TRODLLibrary)
Parameters:
- aModuleHandle: Handle of the module.
- aLibrary: Reference to a RODL structure.
RODLStringToLibrary
Converts string representation of a RODL to the TRODLLibrary.
function RODLStringToLibrary(const aRODL: ROUTF8String): TRODLLibrary
Parameters:
- aRODL: String representation of a RODL.
Transform (string): string overload
Transforms RODL file with XSL from the XSLDocument
property.
function Transform(const aRODL: string): string
Parameters:
- aRODL: String representation of a RODL.
Transform (string, string): string overload
Transforms RODL file with specified XSL.
function Transform(const aRODL: string; const anXSLDocument: string): string
Parameters:
- aRODL: String representation of a RODL.
- anXSLDocument: XSL document.
XSLDocument
Gets or sets XSL document that is used for RODL transformation.
property XSLDocument: TStrings read write
HydraMainInstance
Gets or sets handle of the main module.
property HydraMainInstance: THandle read write
ModuleManager
Gets or sets reference to an instance of the module manager.
property ModuleManager: THYBaseModuleManager read write
XSLDocument
Gets or sets XSL document that is used for RODL transformation.
property XSLDocument: TStrings read write
CreateEmptyRODL
Creates a new, empty RODL with given parameters.
function CreateEmptyRODL(const aLibraryName: string; const aLibraryDescription: string): ROUTF8String
Parameters:
- aLibraryName: Name of the new library.
- aLibraryDescription: Description of the new library.
DoReadRODLResource protected override
procedure DoReadRODLResource(aStream: TStream; aServiceGroup: string; aIgnoreErrors: Boolean)
Parameters:
- aStream:
- aServiceGroup:
- aIgnoreErrors:
MergeRODLs
Merges main rodl with a list of sub-rodls.
procedure MergeRODLs(var MainRODL: ROUTF8String; const SubRODLs: array of ROUTF8String)
Parameters:
- MainRODL: String that holds main rodl definition.
- SubRODLs: Array of strings with sub rodls.
ReadFullRODL overload
Retrieves all available RODL files and merges them into a single RODL.
function ReadFullRODL: ROUTF8String
ReadFullRODL (TRODLLibrary) overload
Retrieves all available RODL files and merges them into a single RODL.
procedure ReadFullRODL(out aLibrary: TRODLLibrary)
Parameters:
- aLibrary: Reference to a RODL structure.
ReadMainRODL overload
Reads main RODL file.
function ReadMainRODL: ROUTF8String
ReadMainRODL (TRODLLibrary) overload
Reads main RODL file.
procedure ReadMainRODL(out aLibrary: TRODLLibrary)
Parameters:
- aLibrary: Reference to a RODL structure.
ReadModuleRODL (THandle): ROUTF8String overload
Reads RODL from a specified module.
function ReadModuleRODL(aModuleHandle: THandle): ROUTF8String
Parameters:
- aModuleHandle: Handle of the module.
ReadModuleRODL (THandle, TRODLLibrary) overload
Reads RODL from a specified module.
procedure ReadModuleRODL(aModuleHandle: THandle; out aLibrary: TRODLLibrary)
Parameters:
- aModuleHandle: Handle of the module.
- aLibrary: Reference to a RODL structure.
RODLStringToLibrary
Converts string representation of a RODL to the TRODLLibrary.
function RODLStringToLibrary(const aRODL: ROUTF8String): TRODLLibrary
Parameters:
- aRODL: String representation of a RODL.
Transform (string): string overload
Transforms RODL file with XSL from the XSLDocument
property.
function Transform(const aRODL: string): string
Parameters:
- aRODL: String representation of a RODL.
Transform (string, string): string overload
Transforms RODL file with specified XSL.
function Transform(const aRODL: string; const anXSLDocument: string): string
Parameters:
- aRODL: String representation of a RODL.
- anXSLDocument: XSL document.