C# Class MissionController.Parser

Parses a file into an object. Uses reflection.
Mostra file Open project: pweingardt/KSPMissionController Class Usage Examples

Public Methods

Method Description
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)

Private Methods

Method Description
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

Method Details

readFile() public method

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

writeObject() public method

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