Craig's Utility Library  4.0 Beta
Utilities.IO.FileFormats.FixedLength.BaseClasses.FieldBase< T > Class Template Referenceabstract

Field base class More...

Inheritance diagram for Utilities.IO.FileFormats.FixedLength.BaseClasses.FieldBase< T >:
Utilities.IO.FileFormats.FixedLength.Interfaces.IField< T >

Public Member Functions

abstract void Parse (string Value, int Length=-1, string FillerCharacter=" ")
 Parses the field More...
 
override string ToString ()
 Converts the field to a string More...
 

Protected Member Functions

 FieldBase ()
 Constructor More...
 

Properties

virtual int Length [get, set]
 Length of the field More...
 
virtual T Value [get, set]
 Value of the field More...
 
- Properties inherited from Utilities.IO.FileFormats.FixedLength.Interfaces.IField< T >
int Length [get, set]
 Field length More...
 
Value [get, set]
 Field value More...
 

Detailed Description

Field base class

Template Parameters
TField type

Definition at line 30 of file FieldBase.cs.

Constructor & Destructor Documentation

Constructor

Definition at line 35 of file FieldBase.cs.

Member Function Documentation

abstract void Utilities.IO.FileFormats.FixedLength.BaseClasses.FieldBase< T >.Parse ( string  Value,
int  Length = -1,
string  FillerCharacter = " " 
)
pure virtual

Parses the field

Parameters
ValueValue to place in the field
LengthLength of the field
FillerCharacterFiller character to use

Implements Utilities.IO.FileFormats.FixedLength.Interfaces.IField< T >.

Implemented in Utilities.IO.FileFormats.FixedLength.StringField.

Converts the field to a string

Returns
The field as a string

Definition at line 61 of file FieldBase.cs.

Property Documentation

Length of the field

Definition at line 42 of file FieldBase.cs.

Value of the field

Definition at line 47 of file FieldBase.cs.


The documentation for this class was generated from the following file: