Class TDataSetItem

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TDataSetItem = class(TCollectionItem)

Description

TDataSetItem is used to save or load a TDataArray from a stream or save it to a stream.

For the most part, writing to TDataSetItem simply stores the value being written to TDataSetItem in one of the private fields of TDataSetItem whereas reading from TDataSetItem reads data not from the private field but from the associated data set. The private procedure UpdateDataSet is used to transfer the stored values to an actual data set.

See TDataSetCollection.

Hierarchy

Overview

Fields

Private FDataSet: TDataArray;
Private FDataSetFunction: string;
Private FMixtureFunction: string;

Methods

Private function GetDataSetClass: string;
Private function GetDataSetFunction: string;
Private function GetMixtureFunction: string;
Private procedure SetDataSetClass(const Value: string);
Private procedure UpdateDataSet;
Public procedure Assign(Source: TPersistent); override;

Properties

Published property DataSetClass: string read GetDataSetClass write SetDataSetClass;
Published property DataSetFunction: string read GetDataSetFunction write FDataSetFunction;
Published property MixtureFunction: string read GetMixtureFunction write FMixtureFunction;
Published property DataSet: TDataArray read FDataSet;

Description

Fields

Private FDataSet: TDataArray;

FDataSet: TDataArray; FDataSet is set to a subcomponent in SetDataSetClass. This is required for the data set properties to be saved to file. See DataSet.

Private FDataSetFunction: string;

FDataSetFunction: string; See DataSetFunction.

Private FMixtureFunction: string;

FMixtureFunction: string; See MixtureFunction.

Methods

Private function GetDataSetClass: string;

See DataSetClass.

Private function GetDataSetFunction: string;

See DataSetFunction.

Private function GetMixtureFunction: string;

See MixtureFunction.

Private procedure SetDataSetClass(const Value: string);

See DataSetClass.

Private procedure UpdateDataSet;

UpdateDataSet calls TDataArray.UpdateWithName.

Public procedure Assign(Source: TPersistent); override;

If Source is a TDataSetItem, Assign copies the published properties of Source. It seems that Assign is never called.

Properties

Published property DataSetClass: string read GetDataSetClass write SetDataSetClass;

DataSetClass is the name of the the class of DataSet. DataSetClass must be read before DataSet to ensure that DataSet is created before being read.

Published property DataSetFunction: string read GetDataSetFunction write FDataSetFunction;

DataSetFunction is the formula used with DataSet.

Published property MixtureFunction: string read GetMixtureFunction write FMixtureFunction;

MixtureFunction is the formula for mixtures used with DataSet.

Published property DataSet: TDataArray read FDataSet;

DataSet is the TDataArray whose values are being saved or read. DataSet must be read after DataSetClass to ensure that it is created before being read.


Generated by PasDoc 0.10.0 on 2006-10-31 09:56:39