C# Class MapAround.IO.DbaseWriter

Writes dBase IV files.
Used mainly for writing ESRI Shapefile attributes.
ファイルを表示 Open project: gkrsu/maparound.core Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Closes current record and stream.

DbaseWriter ( string filename, DbaseFileHeader dbaseHeader ) : System

Initializes a new instance of MapAround.IO.DbaseWriter

Write ( System.DateTime date ) : void

Writes a datetime value.

Write ( IList columnValues, int RecNum ) : void

Writes a row.

Write ( bool flag ) : void

Writes a bool value.

Write ( byte number ) : void

Writes a byte.

Write ( char c, int length ) : void

Writes a character.

Write ( decimal number, int length, int decimalCount ) : void

Writes a decimal value.

Write ( double number, int length, int decimalCount ) : void

Writes a double value.

Write ( float number, int length, int decimalCount ) : void

Writes a float value.

Write ( string text, int length ) : void

Writes a string value.

WriteHeader ( ) : void

Writes a header.

Private Methods

Method Description
IsIntegerType ( Type type ) : bool

Indicates whether a specified type is an integer type.

IsRealType ( Type type ) : bool

Indicates whether a specified type is a real type.

Method Details

Close() public method

Closes current record and stream.
public Close ( ) : void
return void

DbaseWriter() public method

Initializes a new instance of MapAround.IO.DbaseWriter
public DbaseWriter ( string filename, DbaseFileHeader dbaseHeader ) : System
filename string File name
dbaseHeader DbaseFileHeader A dBase file header
return System

Write() public method

Writes a datetime value.
public Write ( System.DateTime date ) : void
date System.DateTime
return void

Write() public method

Writes a row.
public Write ( IList columnValues, int RecNum ) : void
columnValues IList A list containing the column values
RecNum int A number of record
return void

Write() public method

Writes a bool value.
public Write ( bool flag ) : void
flag bool
return void

Write() public method

Writes a byte.
public Write ( byte number ) : void
number byte The byte.
return void

Write() public method

Writes a character.
public Write ( char c, int length ) : void
c char The character to write.
length int The length of the column to write in. Writes /// left justified, filling with spaces.
return void

Write() public method

Writes a decimal value.
public Write ( decimal number, int length, int decimalCount ) : void
number decimal A value to write
length int A length
decimalCount int A number of decimal characters
return void

Write() public method

Writes a double value.
public Write ( double number, int length, int decimalCount ) : void
number double
length int
decimalCount int
return void

Write() public method

Writes a float value.
public Write ( float number, int length, int decimalCount ) : void
number float
length int
decimalCount int
return void

Write() public method

Writes a string value.
public Write ( string text, int length ) : void
text string
length int
return void

WriteHeader() public method

Writes a header.
public WriteHeader ( ) : void
return void