C# 클래스 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.
파일 보기 프로젝트 열기: repelex/Droid-Soccer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Args string[]
EXE string
onCompleteCallBack Action

공개 메소드들

메소드 설명
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

메소드 상세

DoxyRunner() 공개 메소드

public DoxyRunner ( string exepath, string args, DoxyThreadSafeOutput, safeoutput, Action callback ) : UnityEngine
exepath string
args string
safeoutput DoxyThreadSafeOutput,
callback Action
리턴 UnityEngine

EscapeArguments() 공개 정적인 메소드

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
리턴 string

FindExePath() 공개 정적인 메소드

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
리턴 string

Run() 공개 정적인 메소드

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
리턴 int

RunThreadedDoxy() 공개 메소드

public RunThreadedDoxy ( ) : void
리턴 void

updateOuputString() 공개 메소드

public updateOuputString ( string output ) : void
output string
리턴 void

프로퍼티 상세

Args 공개적으로 프로퍼티

public string[] Args
리턴 string[]

EXE 공개적으로 프로퍼티

public string EXE
리턴 string

onCompleteCallBack 공개적으로 프로퍼티

public Action onCompleteCallBack
리턴 Action