source: PSPA/Interface_Web/trunk/pspaWT/sources/controler/include/abstractSoftware.h @ 386

Last change on this file since 386 was 386, checked in by lemeur, 12 years ago

amélioration fiabilité graphique

File size: 1.3 KB
Line 
1#ifndef ABSTRACTSOFTWARE_SEEN
2#define ABSTRACTSOFTWARE_SEEN
3
4#include "globalParameters.h"
5#include "particleBeam.h"
6#include "nomDeLogiciel.h"
7#include <iostream>
8#include <string>
9
10using namespace std;
11
12class dataManager;
13
14class abstractSoftware
15{
16
17 protected :
18
19  unsigned numeroDeb_, numeroFin_;
20  globalParameters* globParamPtr_;
21  dataManager* dataManager_;
22  string inputFileName_;
23  nomDeLogiciel nameOfSoftware_;
24  abstractSoftware();
25
26  bool launchJob(string commandLine, string& resul);
27  bool initComputationLimits(unsigned int numeroDeb,unsigned int numeroFin);
28  bool ComputationLimitsOk() const;
29 public :
30
31  abstractSoftware(string inputFileName, globalParameters* globals, dataManager* dt);
32  ~abstractSoftware() {;}
33
34  inline nomDeLogiciel getNomDeLogiciel() const {
35    return nameOfSoftware_;
36  }
37
38  virtual bool createInputFile(particleBeam* beamBefore,unsigned int numeroDeb, unsigned int numeroFin, string workingDir) = 0;
39
40
41  virtual bool  execute(string workingDir) = 0;
42
43 virtual bool buildBeamAfterElements(string workingDir) = 0;
44
45    /** Color of the background of this sofware
46     Should be a valid Css name as FFEEDD
47     */
48    virtual string getColor() = 0;
49
50    /** Name of this software
51     */
52    inline string getName() const {
53      return nameOfSoftware_.getString();
54    }
55
56};
57#endif
Note: See TracBrowser for help on using the repository browser.