C# Class DoxyRunner, Droid-Soccer

This class spawns and runs Doxygen in a separate thread, and could serve as an example of how to create plugins for unity that call a command line application and then get the data back into Unity safely.
Afficher le fichier Open project: repelex/Droid-Soccer Class Usage Examples

Méthodes publiques

Свойство Type Description
Args string[]
EXE string
onCompleteCallBack Action

Méthodes publiques

Méthode Description
DoxyRunner ( string exepath, string args, DoxyThreadSafeOutput, safeoutput, Action callback ) : UnityEngine
EscapeArguments ( ) : string

Quotes all arguments that contain whitespace, or begin with a quote and returns a single argument string for use with Process.Start().

FindExePath ( string exe ) : string

Expands environment variables and, if unqualified, locates the exe in the working directory or the evironment's path.

Run ( Action output, TextReader input, string exe ) : int

Runs the specified executable with the provided arguments and returns the process' exit code.

RunThreadedDoxy ( ) : void
updateOuputString ( string output ) : void

Method Details

DoxyRunner() public méthode

public DoxyRunner ( string exepath, string args, DoxyThreadSafeOutput, safeoutput, Action callback ) : UnityEngine
exepath string
args string
safeoutput DoxyThreadSafeOutput,
callback Action
Résultat UnityEngine

EscapeArguments() public static méthode

Quotes all arguments that contain whitespace, or begin with a quote and returns a single argument string for use with Process.Start().
Raised when one of the arguments is null Raised if an argument contains '\0', '\r', or '\n'
public static EscapeArguments ( ) : string
Résultat string

FindExePath() public static méthode

Expands environment variables and, if unqualified, locates the exe in the working directory or the evironment's path.
Raised when the exe was not found
public static FindExePath ( string exe ) : string
exe string The name of the executable file
Résultat string

Run() public static méthode

Runs the specified executable with the provided arguments and returns the process' exit code.
Raised when the exe was not found Raised when one of the arguments is null
public static Run ( Action output, TextReader input, string exe ) : int
output Action Recieves the output of either std/err or std/out
input TextReader Provides the line-by-line input that will be written to std/in, null for empty
exe string The executable to run, may be unqualified or contain environment variables
Résultat int

RunThreadedDoxy() public méthode

public RunThreadedDoxy ( ) : void
Résultat void

updateOuputString() public méthode

public updateOuputString ( string output ) : void
output string
Résultat void

Property Details

Args public_oe property

public string[] Args
Résultat string[]

EXE public_oe property

public string EXE
Résultat string

onCompleteCallBack public_oe property

public Action onCompleteCallBack
Résultat Action