PhoenixThread  1.0.0
Tools to ease parallel programming in C++
Loading...
Searching...
No Matches
ProgramCall.cpp
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7
8
9
10#include "ProgramCall.h"
11
16
18
23
28
30
34 copyProgramCall(other);
35 return *this;
36}
37
39
41void ProgramCall::setName(const PString & name){
42 p_name = name;
43}
44
46
48void ProgramCall::setCommand(const PString & command){
49 p_command = command;
50}
51
53
55void ProgramCall::setWorkingDirectory(const PPath & workingDirectory){
56 p_workingDirectory = workingDirectory;
57}
58
60
62void ProgramCall::setExitStatus(int exitStatus){
63 p_exitStatus = exitStatus;
64}
65
67
69void ProgramCall::setLogFile(const PPath & logFile){
70 p_logFile = logFile;
71}
72
74
76const PString & ProgramCall::getName() const{
77 return p_name;
78}
79
81
84 return p_name;
85}
86
88
90const PString & ProgramCall::getCommand() const{
91 return p_command;
92}
93
95
98 return p_command;
99}
100
102
105 return p_workingDirectory;
106}
107
109
114
116
119 return p_exitStatus;
120}
121
123
126 return p_exitStatus;
127}
128
130
132const PPath & ProgramCall::getLogFile() const{
133 return p_logFile;
134}
135
137
140 return p_logFile;
141}
142
144
147 p_name = other.p_name;
148 p_command = other.p_command;
151 p_logFile = other.p_logFile;
152}
153
156 p_name = "";
157 p_command = "";
158 p_workingDirectory = PPath();
159 p_exitStatus = 0;
160 p_logFile = PPath();
161}
162
const PString & getName() const
Gets the name of the ProgramCall.
PString p_command
Command to be executed.
Definition ProgramCall.h:42
void setLogFile(const PPath &logFile)
Sets the logFile of the ProgramCall.
int getExitStatus() const
Gets the exitStatus of the ProgramCall.
const PPath & getLogFile() const
Gets the logFile of the ProgramCall.
ProgramCall()
Constructor of class ProgramCall.
virtual ~ProgramCall()
Destructor of class ProgramCall.
PString p_name
Name of the call.
Definition ProgramCall.h:40
int p_exitStatus
Exist status of the command.
Definition ProgramCall.h:46
void setName(const PString &name)
Sets the name of the ProgramCall.
const PPath & getWorkingDirectory() const
Gets the workingDirectory of the ProgramCall.
void setExitStatus(int exitStatus)
Sets the exitStatus of the ProgramCall.
PPath p_logFile
File where to put log of called program.
Definition ProgramCall.h:48
void initialisationProgramCall()
Initialisation Function of class ProgramCall.
const PString & getCommand() const
Gets the command of the ProgramCall.
PPath p_workingDirectory
Directory in which to execute the program.
Definition ProgramCall.h:44
void setCommand(const PString &command)
Sets the command of the ProgramCall.
void copyProgramCall(const ProgramCall &other)
Copy Function of class ProgramCall.
void setWorkingDirectory(const PPath &workingDirectory)
Sets the workingDirectory of the ProgramCall.
ProgramCall & operator=(const ProgramCall &other)
Operator = of class ProgramCall.