PhoenixThread
1.2.3
Tools to ease parallel programming in C++
Toggle main menu visibility
Loading...
Searching...
No Matches
ProgramCall.h
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
#ifndef __PROGRAMCALL_H__
8
#define __PROGRAMCALL_H__
9
10
#include <vector>
11
#include "PPath.h"
12
14
class
ProgramCall
{
15
public
:
16
ProgramCall
();
17
ProgramCall
(
const
ProgramCall
& other);
18
virtual
~ProgramCall
();
19
ProgramCall
&
operator =
(
const
ProgramCall
& other);
20
void
setName
(
const
PString & name);
21
void
setCommand
(
const
PString & command);
22
void
setWorkingDirectory
(
const
PPath & workingDirectory);
23
void
setExitStatus
(
int
exitStatus);
24
void
setLogFile
(
const
PPath & logFile);
25
const
PString &
getName
()
const
;
26
PString &
getName
();
27
const
PString &
getCommand
()
const
;
28
PString &
getCommand
();
29
const
PPath &
getWorkingDirectory
()
const
;
30
PPath &
getWorkingDirectory
();
31
int
getExitStatus
()
const
;
32
int
&
getExitStatus
();
33
const
PPath &
getLogFile
()
const
;
34
PPath &
getLogFile
();
35
protected
:
36
void
copyProgramCall
(
const
ProgramCall
& other);
37
private
:
38
void
initialisationProgramCall
();
40
PString
p_name
;
42
PString
p_command
;
44
PPath
p_workingDirectory
;
46
int
p_exitStatus
;
48
PPath
p_logFile
;
49
};
50
51
52
53
#endif
54
ProgramCall::getName
const PString & getName() const
Gets the name of the ProgramCall.
Definition
ProgramCall.cpp:76
ProgramCall::p_command
PString p_command
Command to be executed.
Definition
ProgramCall.h:42
ProgramCall::setLogFile
void setLogFile(const PPath &logFile)
Sets the logFile of the ProgramCall.
Definition
ProgramCall.cpp:69
ProgramCall::getExitStatus
int getExitStatus() const
Gets the exitStatus of the ProgramCall.
Definition
ProgramCall.cpp:118
ProgramCall::getLogFile
const PPath & getLogFile() const
Gets the logFile of the ProgramCall.
Definition
ProgramCall.cpp:132
ProgramCall::ProgramCall
ProgramCall()
Constructor of class ProgramCall.
Definition
ProgramCall.cpp:13
ProgramCall::~ProgramCall
virtual ~ProgramCall()
Destructor of class ProgramCall.
Definition
ProgramCall.cpp:25
ProgramCall::p_name
PString p_name
Name of the call.
Definition
ProgramCall.h:40
ProgramCall::p_exitStatus
int p_exitStatus
Exist status of the command.
Definition
ProgramCall.h:46
ProgramCall::setName
void setName(const PString &name)
Sets the name of the ProgramCall.
Definition
ProgramCall.cpp:41
ProgramCall::getWorkingDirectory
const PPath & getWorkingDirectory() const
Gets the workingDirectory of the ProgramCall.
Definition
ProgramCall.cpp:104
ProgramCall::setExitStatus
void setExitStatus(int exitStatus)
Sets the exitStatus of the ProgramCall.
Definition
ProgramCall.cpp:62
ProgramCall::p_logFile
PPath p_logFile
File where to put log of called program.
Definition
ProgramCall.h:48
ProgramCall::initialisationProgramCall
void initialisationProgramCall()
Initialisation Function of class ProgramCall.
Definition
ProgramCall.cpp:155
ProgramCall::getCommand
const PString & getCommand() const
Gets the command of the ProgramCall.
Definition
ProgramCall.cpp:90
ProgramCall::p_workingDirectory
PPath p_workingDirectory
Directory in which to execute the program.
Definition
ProgramCall.h:44
ProgramCall::setCommand
void setCommand(const PString &command)
Sets the command of the ProgramCall.
Definition
ProgramCall.cpp:48
ProgramCall::copyProgramCall
void copyProgramCall(const ProgramCall &other)
Copy Function of class ProgramCall.
Definition
ProgramCall.cpp:146
ProgramCall::setWorkingDirectory
void setWorkingDirectory(const PPath &workingDirectory)
Sets the workingDirectory of the ProgramCall.
Definition
ProgramCall.cpp:55
ProgramCall::operator=
ProgramCall & operator=(const ProgramCall &other)
Operator = of class ProgramCall.
Definition
ProgramCall.cpp:33
src
ProgramCall.h
Generated by
1.17.0