PhoenixThread  1.0.0
Tools to ease parallel programming in C++
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
15 public:
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:
40 PString p_name;
42 PString p_command;
48 PPath p_logFile;
49};
50
51
52
53#endif
54
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.