help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TWriter

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Object to write component data to an arbitrary format.

Declaration

Source position: classesh.inc line 1100

type TWriter = class(TFiler)

public

  procedure Create();

  

Creates a new Writer with a stream and bufsize.

  destructor Destroy; override;

  

Destroys the writer instance.

  procedure DefineProperty(); override;

  

Callback used when defining and streaming custom properties.

  procedure DefineBinaryProperty(); override;

  

Callback used when defining and streaming custom properties.

  procedure Write(); virtual;

  

Write raw data to stream

  procedure WriteBoolean();

  

Write boolean value to the stream.

  procedure WriteCollection();

  

Write a collection to the stream.

  procedure WriteComponent();

  

Stream a component to the stream.

  procedure WriteChar();

  

Write a character to the stream.

  procedure WriteWideChar();

  

Write widechar to stream

  procedure WriteDescendent();

  

Write a descendent component to the stream.

  procedure WriteFloat();

  

Write a float to the stream.

  procedure WriteSingle();

  

Write a single-type real to the stream.

  procedure WriteCurrency();

  

Write a currency value to the stream

  procedure WriteDate();

  

Write a date to the stream.

  procedure WriteIdent();

  

Write an identifier to the stream.

  procedure WriteInteger();

  

Write an integer to the stream.

  procedure WriteListBegin;

  

Write a start-of-list marker to the stream.

  procedure WriteListEnd;

  

Write an end-of-list marker to the stream.

  procedure WriteRootComponent();

  

Write a root component to the stream.

  procedure WriteString();

  

Write a string to the stream.

  procedure WriteWideString();

  

Write a widestring value to the stream

  property RootAncestor: TComponent; [rw]

  

Ancestor of root component.

  property OnFindAncestor: TFindAncestorEvent; [rw]

  

Event occurring when an ancestor component must be found.

  property OnWriteMethodProperty: TWriteMethodPropertyEvent; [rw]

  

Handler from writing method properties.

  property OnWriteStringProperty: TReadWriteStringPropertyEvent; [rw]

  

Event handler for translating strings written to stream.

  property Driver: TAbstractObjectWriter; [r]

  

Driver used when writing to the stream.

  property PropertyPath: String; [r]

end;

Inheritance

TWriter

  

Object to write component data to an arbitrary format.

|

TFiler

  

Class responsible for streaming of components.

|

TObject

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505