Changeset 386 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/include/abstractSoftware.h
- Timestamp:
- Mar 12, 2013, 1:54:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/abstractSoftware.h
r375 r386 4 4 #include "globalParameters.h" 5 5 #include "particleBeam.h" 6 6 #include "nomDeLogiciel.h" 7 7 #include <iostream> 8 8 #include <string> … … 17 17 protected : 18 18 19 unsigned numeroDeb_, numeroFin_; 19 20 globalParameters* globParamPtr_; 20 21 dataManager* dataManager_; 21 22 string inputFileName_; 22 23 nomDeLogiciel nameOfSoftware_; 23 24 abstractSoftware(); 24 25 25 26 bool launchJob(string commandLine, string& resul); 26 27 bool initComputationLimits(unsigned int numeroDeb,unsigned int numeroFin); 28 bool ComputationLimitsOk() const; 27 29 public : 28 30 … … 30 32 ~abstractSoftware() {;} 31 33 34 inline nomDeLogiciel getNomDeLogiciel() const { 35 return nameOfSoftware_; 36 } 37 32 38 virtual bool createInputFile(particleBeam* beamBefore,unsigned int numeroDeb, unsigned int numeroFin, string workingDir) = 0; 33 39 34 40 35 virtual bool execute( unsigned int numeroDeb,unsigned int numeroFin,string workingDir) = 0;41 virtual bool execute(string workingDir) = 0; 36 42 37 virtual bool buildBeamAfterElements( unsigned int numeroDeb,unsigned int numeroFin, vector<particleBeam>& beams,string workingDir) = 0;43 virtual bool buildBeamAfterElements(string workingDir) = 0; 38 44 39 45 /** Color of the background of this sofware … … 44 50 /** Name of this software 45 51 */ 46 virtual string getName() = 0; 52 inline string getName() const { 53 return nameOfSoftware_.getString(); 54 } 47 55 48 56 };
Note: See TracChangeset
for help on using the changeset viewer.