Description | Hierarchy | Fields | Methods | Properties |
type TrwXMLParser = class(TObject)
fInputStream: TStream; |
|
FElementName: AnsiString; |
|
FAttribs: TStringList; |
|
FData: AnsiString; |
|
FEndFound: boolean; |
|
FValidRead: boolean; |
|
FBuffer: PAnsiChar; |
|
FStreamSize: integer; |
|
FShowProgress: boolean; |
procedure SetAttribs(const Value: TStringList); |
|
procedure SetElementName(const Value: AnsiString); |
|
procedure SetData(const Value: AnsiString); |
|
procedure SetEndFound(const Value: boolean); |
|
procedure SetValidRead(const Value: boolean); |
|
procedure TrimSpaces; |
|
procedure SetStreamSize(const Value: integer); |
|
function ReadNameStr: AnsiString; |
|
procedure ReadAttrStr(var AAttrib : AnsiString; var isLast: boolean); |
|
function getNextChar: AnsiChar; |
|
function CheckNextChar: AnsiChar; |
|
procedure CharBack; |
|
procedure ReadData; |
|
procedure SetShowProgress(const Value: boolean); |
|
constructor Create(Stream: TStream); |
|
destructor Destroy; override; |
|
procedure ReadNextElement; virtual; |
|
function EOS: boolean; |
|
function ValueOf(const aName: AnsiString): AnsiString; |
|
function IntegerData: Integer; |
|
function Int64Data: Int64; |
|
function FloatData: Extended; |
property ValidRead: boolean read FValidRead write SetValidRead; |
|
property ElementName: AnsiString read FElementName write SetElementName; |
|
property Attribs: TStringList read FAttribs write SetAttribs; |
|
property Data: AnsiString read FData write SetData; |
|
property EndFound: boolean read FEndFound write SetEndFound; |
|
property StreamSize: integer read FStreamSize write SetStreamSize; |
|
property ShowProgress: boolean read FShowProgress write SetShowProgress; |
fInputStream: TStream; |
|
the stream which holds the XML formated DFM / component stream |
FElementName: AnsiString; |
|
FAttribs: TStringList; |
|
FData: AnsiString; |
|
FEndFound: boolean; |
|
FValidRead: boolean; |
|
FBuffer: PAnsiChar; |
|
FStreamSize: integer; |
|
FShowProgress: boolean; |
|
procedure SetAttribs(const Value: TStringList); |
|
property setter for the Attribs |
procedure SetElementName(const Value: AnsiString); |
|
property setter for the ElementName of the last read Element |
procedure SetData(const Value: AnsiString); |
|
property setter for the Data of the last read XML element |
procedure SetEndFound(const Value: boolean); |
|
property setter for if a end is found in the last read |
procedure SetValidRead(const Value: boolean); |
|
property setter for if the last read was valid |
procedure TrimSpaces; |
|
removes the spaces from the current line |
procedure SetStreamSize(const Value: integer); |
|
Property Setter |
function ReadNameStr: AnsiString; |
|
Reads a validName form the stream |
procedure ReadAttrStr(var AAttrib : AnsiString; var isLast: boolean); |
|
Read a full Attribute from the stream |
function getNextChar: AnsiChar; |
|
function CheckNextChar: AnsiChar; |
|
procedure CharBack; |
|
procedure ReadData; |
|
procedure SetShowProgress(const Value: boolean); |
|
constructor Create(Stream: TStream); |
|
The constructor gets a Stream which hold the XML formatted DFM / Component stream |
destructor Destroy; override; |
|
The destructor cleans all temporary claimed memory. |
procedure ReadNextElement; virtual; |
|
Read the Next Element with all its Attribs and data if on the same line |
function EOS: boolean; |
|
This function returns true if we are at the end of the stream |
function ValueOf(const aName: AnsiString): AnsiString; |
|
Returns the value of Attribute |
function IntegerData: Integer; |
|
Returns the Data as a Integer |
function Int64Data: Int64; |
|
The Value can be a 64 bit integer |
function FloatData: Extended; |
|
Returns the Data as a Float |
property ValidRead: boolean read FValidRead write SetValidRead; |
|
True if the last read was ended with a valid Element |
property ElementName: AnsiString read FElementName write SetElementName; |
|
The name of the last read Element |
property Attribs: TStringList read FAttribs write SetAttribs; |
|
All attributes of the last read Element are saved in a stringlist |
property Data: AnsiString read FData write SetData; |
|
The Data in the form of a AnsiString |
property EndFound: boolean read FEndFound write SetEndFound; |
|
If the Element was closed then this property is true |
property StreamSize: integer read FStreamSize write SetStreamSize; |
|
The actual size of the stream. |
property ShowProgress: boolean read FShowProgress write SetShowProgress; |
|