Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

LinuxProcess Class Reference

#include <LinuxProcess.hpp>

List of all members.

Static Public Member Functions

int createLinuxProcess (string appPath, string args)
void createDir (const string &path)
void changeDir (const string &path)
bool canCreateDir (const string &path)

Static Private Member Functions

void redirectIo ()
void chmodRWX (string appPath)
void execApp (string appPath, char **args)


Detailed Description

LinuxProcess - Creates and lauches a linux prosses.

This class for now has only a single class method to launch a process. However, it will soon evolve to include features such as process control(start, stop, kill....), monitoring, etc...

Author:
Andrei Goldchleger


Member Function Documentation

bool LinuxProcess::canCreateDir const string &  path  )  [static]
 

Returns true if path does not represent an existing file or directory.

Parameters:
path - File or directory being probed for existence

void LinuxProcess::changeDir const string &  path  )  [static]
 

Changes the current directory. Kills the program in case of errors.

Parameters:
path - path to were the current working directory will be changed

void LinuxProcess::chmodRWX string  appPath  )  [static, private]
 

void LinuxProcess::createDir const string &  path  )  [static]
 

Creates a new directory. Kills the program in case of errors.

Parameters:
path - path to the directory being created

int LinuxProcess::createLinuxProcess string  appPath,
string  args
[static]
 

Creates and launches a linux process.

Parameters:
appPath - the executable to be launched
args - command line options

void LinuxProcess::execApp string  appPath,
char **  args
[static, private]
 

void LinuxProcess::redirectIo  )  [static, private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 6 16:13:16 2004 by doxygen 1.3.3