C# 클래스 MissionController.Parser

Parses a file into an object. Uses reflection.
파일 보기 프로젝트 열기: pweingardt/KSPMissionController 1 사용 예제들

공개 메소드들

메소드 설명
readFile ( String path ) : object

Parses the passed file (uses KSP.IO) and returns the parsed object

writeObject ( object obj, String path ) : void

Writes the object into the passed file. (uses KSP.IO)

비공개 메소드들

메소드 설명
nextLine ( KSP reader ) : String

Reads the next single line, that is not a comment and that is relevant ("not {")

readObject ( KSP reader ) : object

Parses the object.

readObject ( KSP reader, String name ) : object
writeObject ( KSP writer, object obj ) : void

메소드 상세

readFile() 공개 메소드

Parses the passed file (uses KSP.IO) and returns the parsed object
public readFile ( String path ) : object
path String Path.
리턴 object

writeObject() 공개 메소드

Writes the object into the passed file. (uses KSP.IO)
public writeObject ( object obj, String path ) : void
obj object Object.
path String Path.
리턴 void