Class TCustomFileWriter

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomFileWriter = class(TObject)

Description

Hierarchy

Overview

Fields

Private FFileStream: TFileStream;
Private FModel: TCustomModel;
Protected FEvaluationType: TEvaluationType;

Methods

Protected procedure CloseFile;
Protected procedure OpenFile(const FileName: string);
Protected function File_Comment(const FileID: string): string;
Protected procedure WriteCommentLine(const Comment: string);
Public class Function FortranDecimal(NumberString : string) : string;
Public class function FixedFormattedInteger(const Value, Width: integer): string;
Public class function FixedFormattedReal(const Value : double; const Width : integer) : string;
Public class function FreeFormattedReal(const Value : double) : string;
Public Constructor Create(AModel: TCustomModel; EvaluationType: TEvaluationType); virtual;
Public procedure NewLine;
Public procedure WriteFloat(const Value: double);
Public procedure WriteF10Float(const Value: double);
Public procedure WriteInteger(Const Value: integer);
Public procedure WriteI10Integer(Const Value: integer; const ErrorID: string);
Public procedure WriteI2Integer(Const Value: integer; const ErrorID: string);
Public procedure WriteString(const Value: String); overload;
Public procedure WriteString(const Value: AnsiString); overload;

Properties

Public property Model: TCustomModel read FModel;

Description

Fields

Private FFileStream: TFileStream;

name is the file that is created by TCustomFileWriter.

Private FModel: TCustomModel;

See Model.

Protected FEvaluationType: TEvaluationType;
 

Methods

Protected procedure CloseFile;

CloseFile closes the file that is being exported.

See also
OpenFile
OpenFile opens the input file to be exported.
Protected procedure OpenFile(const FileName: string);

OpenFile opens the input file to be exported.

See also
CloseFile
CloseFile closes the file that is being exported.
Protected function File_Comment(const FileID: string): string;

File_Comment generates a comment line for a MODFLOW input file indentifying the file type

Protected procedure WriteCommentLine(const Comment: string);

WriteCommentLine writes a comment line to the output file.

Public class Function FortranDecimal(NumberString : string) : string;

the period as the decimal separator.

Public class function FixedFormattedInteger(const Value, Width: integer): string;

FixedFormattedInteger converts "Value" to an string padded at the beginning with blank characters so that the resulting string as a length of "Width".

Public class function FixedFormattedReal(const Value : double; const Width : integer) : string;

FixedFormattedReal converts "Value" to an string padded at the beginning with blank characters so that the resulting string as a length of "Width".

Public class function FreeFormattedReal(const Value : double) : string;

FreeFormattedReal converts "Value" to a string. The decimal separator will always be a period.

Public Constructor Create(AModel: TCustomModel; EvaluationType: TEvaluationType); virtual;

Create creates and instance of TCustomFileWriter.

Parameters
Model
is the TCustomModel to be exported.
Public procedure NewLine;

NewLine writes an end of line to the output file.

Public procedure WriteFloat(const Value: double);

WriteFloat writes Value to the output with a leading blank space.

Public procedure WriteF10Float(const Value: double);
 
Public procedure WriteInteger(Const Value: integer);

WriteInteger writes Value to the output with a leading blank space.

Public procedure WriteI10Integer(Const Value: integer; const ErrorID: string);

WriteI10Integer writes Value to the output in I10 format.

Public procedure WriteI2Integer(Const Value: integer; const ErrorID: string);

WriteI2Integer writes Value to the output in I2 format.

Public procedure WriteString(const Value: String); overload;

WriteString writes Value to the output with NO leading blank space.

Public procedure WriteString(const Value: AnsiString); overload;
 

Properties

Public property Model: TCustomModel read FModel;

Model is the model to be exported.


Generated by PasDoc 0.12.1 on 2013-05-13 15:41:29