TRODLReader

Overview

TRODLReader is a base class that contains abstract methods for reading a RODL file into the TRODLLibrary. It is an ancestor for the TXMLToRODL class.

Location


 

constructor Create  virtual

Creates a new instance with a supplied values.

constructor Create(aAddToExisting: TRODLLibrary; aRecreateGuids: Boolean)

Parameters:

  • aAddToExisting:
  • aRecreateGuids:

GetFormat  virtual abstract

Returns current format

class function GetFormat: string

IntReadFromStream  protected virtual

function IntReadFromStream(Source: TStream; aFilename: string): TRODLLibrary

Parameters:

  • Source:
  • aFilename:

LoadFileToLibrary

Loads library from file

class procedure LoadFileToLibrary(aFilename: string; aLibrary: TRODLLibrary; aRodlUse: TRODLUse; aRecreateGuids: Boolean)

Parameters:

  • aFilename: Filename
  • aLibrary: Library
  • aRodlUse: Specifies current rodl use
  • aRecreateGuids: Recreate guids or not

LoadStreamToLibrary  protected virtual abstract

Loads library from stream

procedure LoadStreamToLibrary(Source: TStream; aLibrary: TRODLLibrary; aRodlName: string; aRodlUse: TRODLUse; aReplaceLibraryAttributes: Boolean)

Parameters:

  • Source: Source stream
  • aLibrary: Rodl library
  • aRodlName: Rodl name
  • aRodlUse: Specifies rodl use
  • aReplaceLibraryAttributes: Replace library attributes or not

Read (TStream, string): TRODLLibrary  overload

function Read(Source: TStream; const aFilename: string): TRODLLibrary

Parameters:

  • Source:
  • aFilename:

Read (TStream, TRODLLibrary, string, Boolean): TRODLLibrary  overload

class function Read(Source: TStream; aAddToExisting: TRODLLibrary; const aFilename: string; aRecreateGuids: Boolean): TRODLLibrary

Parameters:

  • Source:
  • aAddToExisting:
  • aFilename:
  • aRecreateGuids:

ReadFromFile

function ReadFromFile(const aFileName: string): TRODLLibrary

Parameters:

  • aFileName:

ReadFromString (ROUTF8String, string): TRODLLibrary  overload

function ReadFromString(const anUTF8String: ROUTF8String; const aFilename: string): TRODLLibrary

Parameters:

  • anUTF8String:
  • aFilename:

ReadFromString (ROUTF8String, TRODLLibrary, string, Boolean): TRODLLibrary  overload

class function ReadFromString(const anUTF8String: ROUTF8String; aAddToExisting: TRODLLibrary; const aFilename: string; aRecreateGuids: Boolean): TRODLLibrary

Parameters:

  • anUTF8String:
  • aAddToExisting:
  • aFilename:
  • aRecreateGuids:

 

GetFormat  virtual abstract

Returns current format

class function GetFormat: string

LoadFileToLibrary

Loads library from file

class procedure LoadFileToLibrary(aFilename: string; aLibrary: TRODLLibrary; aRodlUse: TRODLUse; aRecreateGuids: Boolean)

Parameters:

  • aFilename: Filename
  • aLibrary: Library
  • aRodlUse: Specifies current rodl use
  • aRecreateGuids: Recreate guids or not

Read (TStream, TRODLLibrary, string, Boolean): TRODLLibrary  overload

class function Read(Source: TStream; aAddToExisting: TRODLLibrary; const aFilename: string; aRecreateGuids: Boolean): TRODLLibrary

Parameters:

  • Source:
  • aAddToExisting:
  • aFilename:
  • aRecreateGuids:

ReadFromString (ROUTF8String, TRODLLibrary, string, Boolean): TRODLLibrary  overload

class function ReadFromString(const anUTF8String: ROUTF8String; aAddToExisting: TRODLLibrary; const aFilename: string; aRecreateGuids: Boolean): TRODLLibrary

Parameters:

  • anUTF8String:
  • aAddToExisting:
  • aFilename:
  • aRecreateGuids:

 

constructor Create  virtual

Creates a new instance with a supplied values.

constructor Create(aAddToExisting: TRODLLibrary; aRecreateGuids: Boolean)

Parameters:

  • aAddToExisting:
  • aRecreateGuids:

IntReadFromStream  protected virtual

function IntReadFromStream(Source: TStream; aFilename: string): TRODLLibrary

Parameters:

  • Source:
  • aFilename:

LoadStreamToLibrary  protected virtual abstract

Loads library from stream

procedure LoadStreamToLibrary(Source: TStream; aLibrary: TRODLLibrary; aRodlName: string; aRodlUse: TRODLUse; aReplaceLibraryAttributes: Boolean)

Parameters:

  • Source: Source stream
  • aLibrary: Rodl library
  • aRodlName: Rodl name
  • aRodlUse: Specifies rodl use
  • aReplaceLibraryAttributes: Replace library attributes or not

Read (TStream, string): TRODLLibrary  overload

function Read(Source: TStream; const aFilename: string): TRODLLibrary

Parameters:

  • Source:
  • aFilename:

ReadFromFile

function ReadFromFile(const aFileName: string): TRODLLibrary

Parameters:

  • aFileName:

ReadFromString (ROUTF8String, string): TRODLLibrary  overload

function ReadFromString(const anUTF8String: ROUTF8String; const aFilename: string): TRODLLibrary

Parameters:

  • anUTF8String:
  • aFilename: