glib.Spawn.Spawn Class Reference

List of all members.

Detailed Description

Description.


Public Member Functions

alias bool delegate (Spawn) ChildWatch
 this (char[] program, char[][] envp=null)
 Creates a Spawn for execution.
 this (char[][] program, char[][] envp=null)
 Creates a Spawn for execution.
void addChildWatch (ChildWatch dlg)
 Adds a delegate to be notified on the end of the child process.
void close ()
 Closes all open streams and child process.
void addParm (char[] parm)
 Adds a parameter to the execution program.
char[] getLastError ()
 Gets the last error message.
int execAsyncWithPipes (ChildWatch externalWatch=null, bool delegate(char[]) readOutput=null, bool delegate(char[]) readError=null)
 Executes the prepared process.
 extern (C) static void childWatchCallback(int pid

Public Attributes

char[] workingDirectory = "."
char[][] argv
char[][] envp
GSpawnFlags flags = SpawnFlags.SEARCH_PATH
GSpawnChildSetupFunc childSetup
void * userData
GPid childPid
FILE * standardInput
FILE * standardOutput
FILE * standardError
GErrorerror
int stdIn
int stdOut
int stdErr
int exitStatus
charstrOutput
charstrError
ChildWatch externalWatch
int status

Private Member Functions

char[] readLine (FILE *stream, int max=4096)

Classes

class  ReadFile


Constructor & Destructor Documentation

glib.Spawn.Spawn.this ( char[]  program,
char  envp[][] = null 
)

Creates a Spawn for execution.

glib.Spawn.Spawn.this ( char  program[][],
char  envp[][] = null 
)

Creates a Spawn for execution.


Member Function Documentation

void glib.Spawn.Spawn.addChildWatch ( ChildWatch  dlg  ) 

Adds a delegate to be notified on the end of the child process.

Params: delegate(int = dlg =

void glib.Spawn.Spawn.addParm ( char[]  parm  ) 

Adds a parameter to the execution program.

void glib.Spawn.Spawn.close (  ) 

Closes all open streams and child process.

alias bool glib.Spawn.Spawn.delegate ( Spawn   ) 

int glib.Spawn.Spawn.execAsyncWithPipes ( ChildWatch  externalWatch = null,
bool delegate(char[])  readOutput = null,
bool delegate(char[])  readError = null 
)

Executes the prepared process.

glib.Spawn.Spawn.extern (  ) 

char [] glib.Spawn.Spawn.getLastError (  ) 

Gets the last error message.

char [] glib.Spawn.Spawn.readLine ( FILE *  stream,
int  max = 4096 
) [private]


Member Data Documentation

char [][] glib.Spawn.Spawn.argv

GPid glib.Spawn.Spawn.childPid

GSpawnChildSetupFunc glib.Spawn.Spawn.childSetup

char [][] glib.Spawn.Spawn.envp

GError* glib.Spawn.Spawn.error

int glib.Spawn.Spawn.exitStatus

ChildWatch glib.Spawn.Spawn.externalWatch

GSpawnFlags glib.Spawn.Spawn.flags = SpawnFlags.SEARCH_PATH

FILE* glib.Spawn.Spawn.standardError

FILE* glib.Spawn.Spawn.standardInput

FILE* glib.Spawn.Spawn.standardOutput

int glib.Spawn.Spawn.status

int glib.Spawn.Spawn.stdErr

int glib.Spawn.Spawn.stdIn

int glib.Spawn.Spawn.stdOut

char* glib.Spawn.Spawn.strError

char* glib.Spawn.Spawn.strOutput

void* glib.Spawn.Spawn.userData

char [] glib.Spawn.Spawn.workingDirectory = "."


SourceForge.net Logo DSource.org Logo digitalmars.com Logo