![]() |
|
PhoenixThread
1.0.0
Tools to ease parallel programming in C++
|
Call a program. More...
#include <ProgramCall.h>
Public Member Functions | |
| PString & | getCommand () |
| Gets the command of the ProgramCall. | |
| const PString & | getCommand () const |
| Gets the command of the ProgramCall. | |
| int & | getExitStatus () |
| Gets the exitStatus of the ProgramCall. | |
| int | getExitStatus () const |
| Gets the exitStatus of the ProgramCall. | |
| PPath & | getLogFile () |
| Gets the logFile of the ProgramCall. | |
| const PPath & | getLogFile () const |
| Gets the logFile of the ProgramCall. | |
| PString & | getName () |
| Gets the name of the ProgramCall. | |
| const PString & | getName () const |
| Gets the name of the ProgramCall. | |
| PPath & | getWorkingDirectory () |
| Gets the workingDirectory of the ProgramCall. | |
| const PPath & | getWorkingDirectory () const |
| Gets the workingDirectory of the ProgramCall. | |
| ProgramCall & | operator= (const ProgramCall &other) |
| Operator = of class ProgramCall. | |
| ProgramCall () | |
| Constructor of class ProgramCall. | |
| ProgramCall (const ProgramCall &other) | |
| Copy Constructor of class ProgramCall. | |
| void | setCommand (const PString &command) |
| Sets the command of the ProgramCall. | |
| void | setExitStatus (int exitStatus) |
| Sets the exitStatus of the ProgramCall. | |
| void | setLogFile (const PPath &logFile) |
| Sets the logFile of the ProgramCall. | |
| void | setName (const PString &name) |
| Sets the name of the ProgramCall. | |
| void | setWorkingDirectory (const PPath &workingDirectory) |
| Sets the workingDirectory of the ProgramCall. | |
| virtual | ~ProgramCall () |
| Destructor of class ProgramCall. | |
Protected Member Functions | |
| void | copyProgramCall (const ProgramCall &other) |
| Copy Function of class ProgramCall. | |
Private Member Functions | |
| void | initialisationProgramCall () |
| Initialisation Function of class ProgramCall. | |
Private Attributes | |
| PString | p_command |
| Command to be executed. | |
| int | p_exitStatus |
| Exist status of the command. | |
| PPath | p_logFile |
| File where to put log of called program. | |
| PString | p_name |
| Name of the call. | |
| PPath | p_workingDirectory |
| Directory in which to execute the program. | |
Call a program.
Definition at line 14 of file ProgramCall.h.
| ProgramCall::ProgramCall | ( | ) |
Constructor of class ProgramCall.
Definition at line 13 of file ProgramCall.cpp.
References initialisationProgramCall().
Referenced by copyProgramCall(), operator=(), and ProgramCall().
Here is the call graph for this function:
Here is the caller graph for this function:| ProgramCall::ProgramCall | ( | const ProgramCall & | other | ) |
Copy Constructor of class ProgramCall.
| other | : ProgramCall we want ot copy |
Definition at line 20 of file ProgramCall.cpp.
References copyProgramCall(), and ProgramCall().
Here is the call graph for this function:
|
virtual |
|
protected |
Copy Function of class ProgramCall.
| other | : ProgramCall we want ot copy |
Definition at line 146 of file ProgramCall.cpp.
References p_command, p_exitStatus, p_logFile, p_name, p_workingDirectory, and ProgramCall().
Referenced by operator=(), and ProgramCall().
Here is the call graph for this function:
Here is the caller graph for this function:| PString & ProgramCall::getCommand | ( | ) |
Gets the command of the ProgramCall.
Definition at line 97 of file ProgramCall.cpp.
References p_command.
| const PString & ProgramCall::getCommand | ( | ) | const |
Gets the command of the ProgramCall.
Definition at line 90 of file ProgramCall.cpp.
References p_command.
Referenced by phoenix_program_call().
Here is the caller graph for this function:| int & ProgramCall::getExitStatus | ( | ) |
Gets the exitStatus of the ProgramCall.
Definition at line 125 of file ProgramCall.cpp.
References p_exitStatus.
| int ProgramCall::getExitStatus | ( | ) | const |
Gets the exitStatus of the ProgramCall.
Definition at line 118 of file ProgramCall.cpp.
References p_exitStatus.
| PPath & ProgramCall::getLogFile | ( | ) |
Gets the logFile of the ProgramCall.
Definition at line 139 of file ProgramCall.cpp.
References p_logFile.
| const PPath & ProgramCall::getLogFile | ( | ) | const |
Gets the logFile of the ProgramCall.
Definition at line 132 of file ProgramCall.cpp.
References p_logFile.
Referenced by phoenix_program_call().
Here is the caller graph for this function:| PString & ProgramCall::getName | ( | ) |
Gets the name of the ProgramCall.
Definition at line 83 of file ProgramCall.cpp.
References p_name.
| const PString & ProgramCall::getName | ( | ) | const |
Gets the name of the ProgramCall.
Definition at line 76 of file ProgramCall.cpp.
References p_name.
| PPath & ProgramCall::getWorkingDirectory | ( | ) |
Gets the workingDirectory of the ProgramCall.
Definition at line 111 of file ProgramCall.cpp.
References p_workingDirectory.
| const PPath & ProgramCall::getWorkingDirectory | ( | ) | const |
Gets the workingDirectory of the ProgramCall.
Definition at line 104 of file ProgramCall.cpp.
References p_workingDirectory.
Referenced by phoenix_program_call().
Here is the caller graph for this function:
|
private |
Initialisation Function of class ProgramCall.
Definition at line 155 of file ProgramCall.cpp.
References p_command, p_exitStatus, p_logFile, p_name, and p_workingDirectory.
Referenced by ProgramCall().
Here is the caller graph for this function:| ProgramCall & ProgramCall::operator= | ( | const ProgramCall & | other | ) |
Operator = of class ProgramCall.
| other | : ProgramCall we want ot copy |
Definition at line 33 of file ProgramCall.cpp.
References copyProgramCall(), and ProgramCall().
Here is the call graph for this function:| void ProgramCall::setCommand | ( | const PString & | command | ) |
Sets the command of the ProgramCall.
| command | : command of the ProgramCall |
Definition at line 48 of file ProgramCall.cpp.
References p_command.
Referenced by phoenix_program_addcall().
Here is the caller graph for this function:| void ProgramCall::setExitStatus | ( | int | exitStatus | ) |
Sets the exitStatus of the ProgramCall.
| exitStatus | : exitStatus of the ProgramCall |
Definition at line 62 of file ProgramCall.cpp.
References p_exitStatus.
Referenced by phoenix_program_addcall(), and phoenix_program_call().
Here is the caller graph for this function:| void ProgramCall::setLogFile | ( | const PPath & | logFile | ) |
Sets the logFile of the ProgramCall.
| logFile | : logFile of the ProgramCall |
Definition at line 69 of file ProgramCall.cpp.
References p_logFile.
Referenced by phoenix_program_addcall().
Here is the caller graph for this function:| void ProgramCall::setName | ( | const PString & | name | ) |
Sets the name of the ProgramCall.
| name | : name of the ProgramCall |
Definition at line 41 of file ProgramCall.cpp.
References p_name.
Referenced by phoenix_program_addcall().
Here is the caller graph for this function:| void ProgramCall::setWorkingDirectory | ( | const PPath & | workingDirectory | ) |
Sets the workingDirectory of the ProgramCall.
| workingDirectory | : workingDirectory of the ProgramCall |
Definition at line 55 of file ProgramCall.cpp.
References p_workingDirectory.
Referenced by phoenix_program_addcall().
Here is the caller graph for this function:
|
private |
Command to be executed.
Definition at line 42 of file ProgramCall.h.
Referenced by copyProgramCall(), getCommand(), getCommand(), initialisationProgramCall(), and setCommand().
|
private |
Exist status of the command.
Definition at line 46 of file ProgramCall.h.
Referenced by copyProgramCall(), getExitStatus(), getExitStatus(), initialisationProgramCall(), and setExitStatus().
|
private |
File where to put log of called program.
Definition at line 48 of file ProgramCall.h.
Referenced by copyProgramCall(), getLogFile(), getLogFile(), initialisationProgramCall(), and setLogFile().
|
private |
Name of the call.
Definition at line 40 of file ProgramCall.h.
Referenced by copyProgramCall(), getName(), getName(), initialisationProgramCall(), and setName().
|
private |
Directory in which to execute the program.
Definition at line 44 of file ProgramCall.h.
Referenced by copyProgramCall(), getWorkingDirectory(), getWorkingDirectory(), initialisationProgramCall(), and setWorkingDirectory().