C# 클래스 MapAround.IO.DbaseFileHeader

Represents a header of dBase-file.
파일 보기 프로젝트 열기: gkrsu/maparound.core 1 사용 예제들

공개 메소드들

메소드 설명
AddColumn ( string fieldName, Type dataType ) : void

Adds a column.

AddColumn ( string fieldName, char fieldType, Type DataType, int fieldLength, int decimalCount ) : void

Adds a column.

DbaseFileHeader ( ) : System

Initializes a new instance of MapAround.IO.DbaseFileHeader.

Read ( BinaryReader reader ) : void

Reads a dBase header.

RecountColumnLength ( DbaseFieldDescriptor field, IEnumerable columnValues ) : void

Computes a maximum length of field taking into account all the values.

RemoveColumn ( string fieldName ) : int

Removes a column.

Write ( BinaryWriter writer ) : void

Writes a dBase header into stream.

비공개 메소드들

메소드 설명
getDbaseLanguageDriver ( byte dbasecode ) : Encoding
getDbaseLanguageDriver ( int dbasecode ) : byte

메소드 상세

AddColumn() 공개 메소드

Adds a column.
public AddColumn ( string fieldName, Type dataType ) : void
fieldName string A filed name
dataType System.Type A CLR data type
리턴 void

AddColumn() 공개 메소드

Adds a column.
public AddColumn ( string fieldName, char fieldType, Type DataType, int fieldLength, int decimalCount ) : void
fieldName string A filed name
fieldType char A character defining a dBAse filed type (C N L or D)
DataType System.Type A CLR data type
fieldLength int A length of field in bytes
decimalCount int A number of decimal characters
리턴 void

DbaseFileHeader() 공개 메소드

Initializes a new instance of MapAround.IO.DbaseFileHeader.
public DbaseFileHeader ( ) : System
리턴 System

Read() 공개 메소드

Reads a dBase header.
public Read ( BinaryReader reader ) : void
reader System.IO.BinaryReader A System.IO.BinaryReader instance to read header
리턴 void

RecountColumnLength() 공개 메소드

Computes a maximum length of field taking into account all the values.
public RecountColumnLength ( DbaseFieldDescriptor field, IEnumerable columnValues ) : void
field DbaseFieldDescriptor A descriptor of field
columnValues IEnumerable A field value enumerator
리턴 void

RemoveColumn() 공개 메소드

Removes a column.
public RemoveColumn ( string fieldName ) : int
fieldName string A filed name
리턴 int

Write() 공개 메소드

Writes a dBase header into stream.
public Write ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter A System.IO.BinaryWriter instance to write header
리턴 void