C# 클래스 Yava.FoldersFile.FoldersFileReader

상속: mINI.INIReader
파일 보기 프로젝트 열기: Beluki/Yava 1 사용 예제들

공개 메소드들

메소드 설명
FoldersFileReader ( ) : System

An INIReader that reads lines from a folders file adding sections and key=value pairs to a collection as folder names/options.

Read ( String filepath, IList folders ) : void

Read a folders file adding each folder with its options to a collection.

보호된 메소드들

메소드 설명
OnEmpty ( ) : void

On an empty line, add the current folder to the collection and move on to the next one.

OnKeyEmpty ( String value ) : void

Do not accept options with no name.

OnKeyValue ( String key, String value ) : void

Set key=value pairs as options to the current folder.

OnSection ( String section ) : void

On a new section, add the current folder to the collection and create the next one.

OnSectionEmpty ( ) : void

Do not accept folders with no name.

OnUnknown ( String line ) : void

Syntax errors.

OnValueEmpty ( String key ) : void

Options without value are fine. (each option validates its own value in OnKeyValue)

비공개 메소드들

메소드 설명
AddCurrentFolder ( ) : void

Add the current folder to the list and move on to the next.

ReadError ( String message ) : FoldersFileReadError

Concise helper to create FoldersFileReadError exceptions.

ReadFolderExecutable ( String value ) : String

Try to parse a folder executable option.

ReadFolderExtensions ( String value ) : HashSet

Try to parse a folder extensions option.

ReadFolderParameters ( String value ) : String

Try to parse folder parameters option.

ReadFolderPath ( String value ) : String

Try to parse a folder path option.

ReadFolderWorkingDirectory ( String value ) : String

Try to parse folder workingdirectory option.

ResetState ( ) : void

Clear internal state.

메소드 상세

FoldersFileReader() 공개 메소드

An INIReader that reads lines from a folders file adding sections and key=value pairs to a collection as folder names/options.
public FoldersFileReader ( ) : System
리턴 System

OnEmpty() 보호된 메소드

On an empty line, add the current folder to the collection and move on to the next one.
protected OnEmpty ( ) : void
리턴 void

OnKeyEmpty() 보호된 메소드

Do not accept options with no name.
protected OnKeyEmpty ( String value ) : void
value String
리턴 void

OnKeyValue() 보호된 메소드

Set key=value pairs as options to the current folder.
protected OnKeyValue ( String key, String value ) : void
key String
value String
리턴 void

OnSection() 보호된 메소드

On a new section, add the current folder to the collection and create the next one.
protected OnSection ( String section ) : void
section String
리턴 void

OnSectionEmpty() 보호된 메소드

Do not accept folders with no name.
protected OnSectionEmpty ( ) : void
리턴 void

OnUnknown() 보호된 메소드

Syntax errors.
protected OnUnknown ( String line ) : void
line String
리턴 void

OnValueEmpty() 보호된 메소드

Options without value are fine. (each option validates its own value in OnKeyValue)
protected OnValueEmpty ( String key ) : void
key String
리턴 void

Read() 공개 메소드

Read a folders file adding each folder with its options to a collection.
public Read ( String filepath, IList folders ) : void
filepath String Path to the file to read lines from.
folders IList Target list to add folders to.
리턴 void