Method | Description | |
---|---|---|
CSVHeaders ( |
Construct the object.
|
|
CSVHeaders ( IEnumerable |
Construct the object.
|
|
Find ( String name ) : int |
Find the specified column.
|
|
GetBaseHeader ( int index ) : String |
Get the base header, strip any (...).
|
|
GetHeader ( int index ) : String |
Get the specified header.
|
|
GetSlice ( int currentIndex ) : int |
Get the timeslice for the specified index.
|
|
ParseTimeSlice ( String name ) : int |
Parse a timeslice from a header such as (t-1).
|
|
Size ( ) : int | ||
TagColumn ( String name, int part, int timeSlice, bool multiPart ) : String |
Tag a column with part # and timeslice.
|
Method | Description | |
---|---|---|
Init ( ) : void |
Setup the column mapping and validate.
|
|
ValidateSameName ( ) : void |
Validate that two columns do not have the same name. This is an error.
|
public CSVHeaders ( |
||
filename | The filename. | |
headers | bool | False if headers are not extended. |
format | The CSV format. | |
return | System |
public CSVHeaders ( IEnumerable |
||
inputHeadings | IEnumerable |
The input headings. |
return | System |
public GetBaseHeader ( int index ) : String | ||
index | int | The index of the header. |
return | String |
public GetHeader ( int index ) : String | ||
index | int | The index of the header to get. |
return | String |
public GetSlice ( int currentIndex ) : int | ||
currentIndex | int | The index to get the time slice for. |
return | int |
public static ParseTimeSlice ( String name ) : int | ||
name | String | The column name. |
return | int |
public static TagColumn ( String name, int part, int timeSlice, bool multiPart ) : String | ||
name | String | The name of the column. |
part | int | The part #. |
timeSlice | int | The timeslice. |
multiPart | bool | True if this is a multipart column. |
return | String |