Craig's Utility Library
4.0 Beta
|
Record base class More...
Public Member Functions | |
void | Add (IField< T > item) |
Adds a Field to the file More... | |
void | Clear () |
Clears the file More... | |
bool | Contains (IField< T > item) |
Determines if the file contains a Field More... | |
void | CopyTo (IField< T >[] array, int arrayIndex) |
Copies the delimited file to an array More... | |
IEnumerator< IField< T > > | GetEnumerator () |
Gets the enumerator for the file More... | |
int | IndexOf (IField< T > item) |
Index of a specific Field More... | |
void | Insert (int index, IField< T > item) |
Inserts a Field at a specific index More... | |
abstract void | Parse (string Value, int Length=-1) |
Parses the record More... | |
bool | Remove (IField< T > item) |
Removes a Field from the file More... | |
void | RemoveAt (int index) |
Removes a Field at a specific index More... | |
override string | ToString () |
Converts the record to a string More... | |
Protected Member Functions | |
RecordBase () | |
Constructor More... | |
Properties | |
int | Count [get] |
Number of Fields More... | |
bool | IsReadOnly [get] |
Is the file read only More... | |
int | Length [get, set] |
Length More... | |
IList< IField< T > > | Fields [get] |
The list of fields More... | |
IField< T > | this[int Position] [get, set] |
Individual records More... | |
Properties inherited from Utilities.IO.FileFormats.FixedLength.Interfaces.IRecord< T > | |
int | Length [get, set] |
Length of the record More... | |
|
protected |
Constructor
Definition at line 37 of file RecordBase.cs.
void Utilities.IO.FileFormats.FixedLength.BaseClasses.RecordBase< T >.Add | ( | IField< T > | item | ) |
void Utilities.IO.FileFormats.FixedLength.BaseClasses.RecordBase< T >.Clear | ( | ) |
Clears the file
Definition at line 91 of file RecordBase.cs.
bool Utilities.IO.FileFormats.FixedLength.BaseClasses.RecordBase< T >.Contains | ( | IField< T > | item | ) |
Determines if the file contains a Field
item | Field to check for |
Definition at line 101 of file RecordBase.cs.
void Utilities.IO.FileFormats.FixedLength.BaseClasses.RecordBase< T >.CopyTo | ( | IField< T >[] | array, |
int | arrayIndex | ||
) |
Copies the delimited file to an array
array | Array to copy to |
arrayIndex | Index to start at |
Definition at line 111 of file RecordBase.cs.
IEnumerator<IField<T> > Utilities.IO.FileFormats.FixedLength.BaseClasses.RecordBase< T >.GetEnumerator | ( | ) |
Gets the enumerator for the file
Definition at line 120 of file RecordBase.cs.
int Utilities.IO.FileFormats.FixedLength.BaseClasses.RecordBase< T >.IndexOf | ( | IField< T > | item | ) |
Index of a specific Field
item | Field to search for |
Definition at line 130 of file RecordBase.cs.
void Utilities.IO.FileFormats.FixedLength.BaseClasses.RecordBase< T >.Insert | ( | int | index, |
IField< T > | item | ||
) |
Inserts a Field at a specific index
index | Index to insert at |
item | Field to insert |
Definition at line 140 of file RecordBase.cs.
|
pure virtual |
Parses the record
Value | Value |
Length | Length of the record |
Implements Utilities.IO.FileFormats.FixedLength.Interfaces.IRecord< T >.
bool Utilities.IO.FileFormats.FixedLength.BaseClasses.RecordBase< T >.Remove | ( | IField< T > | item | ) |
Removes a Field from the file
item | Field to remove |
Definition at line 157 of file RecordBase.cs.
void Utilities.IO.FileFormats.FixedLength.BaseClasses.RecordBase< T >.RemoveAt | ( | int | index | ) |
Removes a Field at a specific index
index | Index of the Field to remove |
Definition at line 166 of file RecordBase.cs.
override string Utilities.IO.FileFormats.FixedLength.BaseClasses.RecordBase< T >.ToString | ( | ) |
Converts the record to a string
Definition at line 184 of file RecordBase.cs.
|
get |
Number of Fields
Definition at line 46 of file RecordBase.cs.
|
getprotected |
The list of fields
Definition at line 66 of file RecordBase.cs.
|
get |
Is the file read only
Definition at line 54 of file RecordBase.cs.
|
getset |
Length
Definition at line 61 of file RecordBase.cs.
|
getset |
Individual records
Position | The record that you want to get |
Definition at line 74 of file RecordBase.cs.