C# 클래스 Pdoxcl2Sharp.ParadoxStreamWriter

상속: IDisposable
파일 보기 프로젝트 열기: nickbabcock/Pdoxcl2Sharp 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases all resources held by the writer

Write ( System.DateTime value ) : void

Writes a DateTime to the stream

Write ( double value ) : void

Writes a double to the stream

Write ( int value ) : void

Writes an integer to the stream

Write ( string value ) : void

Writes a string

Write ( string header, Action objWriter ) : void

Writes a structure that is identified by a header

Write ( string header, IParadoxWrite obj ) : void

Writes a structure that is identified by a header

Write ( string value, ValueWrite type ) : void

Writes a string dictated by a format

Write ( string key, string value ) : void

Writes a key-value pair to the stream with no special formatting

Write ( string key, string value, ValueWrite valuetype ) : void

Writes a key-value pair to the stream with formatting specified by valuetype. It is assumed that the key will be indented and that the value will not be.

WriteComment ( string comment ) : void

Writes a string followed by a line terminator that will be ignored by a paradox parser

WriteLine ( ) : void

Writes a line terminator to the text stream

WriteLine ( string value ) : void

Writes a string followed by a line terminator to the text stream.

WriteLine ( string key, System.DateTime date ) : void

Writes a date and time that is identified by a key. The date is written in a way to conform with how Paradox writes dates

WriteLine ( string value, ValueWrite valuetype ) : void

Writes a string in the format of valuetype followed by a line terminator.

WriteLine ( string key, bool val ) : void

Writes a boolean that is identified by a key. The boolean is written in a way to conform with how Paradox writes booleans.

WriteLine ( string key, double val ) : void

Writes a double that is a identified by a key. The double is written in a way to conform with how Paradox writes doubles.

WriteLine ( string key, int val ) : void

Writes an integer that is identified by a key. The integer is written in a way to conform with how Paradox writes integers.

WriteLine ( string key, string value ) : void

Writes a string value that is identified by a key followed by a line terminator

WriteLine ( string key, string value, ValueWrite valuetype ) : void

Writes a key-value pair followed by a line terminator to the stream with formatting specified by valuetype. It is assumed that the key will be indented and that the value will not be.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
ParadoxStreamWriter ( Stream output ) : System

비공개 메소드들

메소드 설명
UpdateCurrentIndentFromIndentsIn ( string str ) : void

Given a string, the function will detect squirrely brackets and update the current indent of the writer

메소드 상세

Dispose() 공개 메소드

Releases all resources held by the writer
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

ParadoxStreamWriter() 보호된 메소드

protected ParadoxStreamWriter ( Stream output ) : System
output Stream
리턴 System

Write() 공개 메소드

Writes a DateTime to the stream
public Write ( System.DateTime value ) : void
value System.DateTime DateTime to be written
리턴 void

Write() 공개 메소드

Writes a double to the stream
public Write ( double value ) : void
value double Double to be written
리턴 void

Write() 공개 메소드

Writes an integer to the stream
public Write ( int value ) : void
value int Integer to be written
리턴 void

Write() 공개 메소드

Writes a string
public Write ( string value ) : void
value string String to be written
리턴 void

Write() 공개 추상적인 메소드

Writes a structure that is identified by a header
public abstract Write ( string header, Action objWriter ) : void
header string The string that will identify the following structure
objWriter Action /// A function that accepts a /// and dictates how the structure will be written ///
리턴 void

Write() 공개 메소드

Writes a structure that is identified by a header
public Write ( string header, IParadoxWrite obj ) : void
header string The string that will identify the following structure
obj IParadoxWrite The that dictates how the structure will be written
리턴 void

Write() 공개 메소드

Writes a string dictated by a format
public Write ( string value, ValueWrite type ) : void
value string String to be written
type ValueWrite Denotes what modifications to be made on the string before being written
리턴 void

Write() 공개 메소드

Writes a key-value pair to the stream with no special formatting
public Write ( string key, string value ) : void
key string Key that identifies the value
value string Value to be written to the stream
리턴 void

Write() 공개 추상적인 메소드

Writes a key-value pair to the stream with formatting specified by valuetype. It is assumed that the key will be indented and that the value will not be.
public abstract Write ( string key, string value, ValueWrite valuetype ) : void
key string Key that identifies the value
value string Value to be written to the stream
valuetype ValueWrite Dictates how the value should be written to the stream.
리턴 void

WriteComment() 공개 추상적인 메소드

Writes a string followed by a line terminator that will be ignored by a paradox parser
public abstract WriteComment ( string comment ) : void
comment string The string to be written to the file but ignored on parse
리턴 void

WriteLine() 공개 메소드

Writes a line terminator to the text stream
public WriteLine ( ) : void
리턴 void

WriteLine() 공개 메소드

Writes a string followed by a line terminator to the text stream.
public WriteLine ( string value ) : void
value string The string to write. If value is null, only the line termination characters are written
리턴 void

WriteLine() 공개 추상적인 메소드

Writes a date and time that is identified by a key. The date is written in a way to conform with how Paradox writes dates
public abstract WriteLine ( string key, System.DateTime date ) : void
key string Key to be written
date System.DateTime Date to be written
리턴 void

WriteLine() 공개 추상적인 메소드

Writes a string in the format of valuetype followed by a line terminator.
public abstract WriteLine ( string value, ValueWrite valuetype ) : void
value string The string to be written to the text stream
valuetype ValueWrite The format of how the string should be written
리턴 void

WriteLine() 공개 메소드

Writes a boolean that is identified by a key. The boolean is written in a way to conform with how Paradox writes booleans.
public WriteLine ( string key, bool val ) : void
key string Key to be written
val bool Boolean to be written
리턴 void

WriteLine() 공개 메소드

Writes a double that is a identified by a key. The double is written in a way to conform with how Paradox writes doubles.
public WriteLine ( string key, double val ) : void
key string Key to be written.
val double Double to be written
리턴 void

WriteLine() 공개 메소드

Writes an integer that is identified by a key. The integer is written in a way to conform with how Paradox writes integers.
public WriteLine ( string key, int val ) : void
key string Key that identifies the value
val int Value to the be written to the stream
리턴 void

WriteLine() 공개 메소드

Writes a string value that is identified by a key followed by a line terminator
public WriteLine ( string key, string value ) : void
key string The text can identify the value
value string Value to be written
리턴 void

WriteLine() 공개 추상적인 메소드

Writes a key-value pair followed by a line terminator to the stream with formatting specified by valuetype. It is assumed that the key will be indented and that the value will not be.
public abstract WriteLine ( string key, string value, ValueWrite valuetype ) : void
key string Key that identifies the value
value string Value to be written to the stream
valuetype ValueWrite Dictates how the value should be written to the stream
리턴 void