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

Last change on this file since 375 was 375, checked in by garnier, 11 years ago

Affichage du nom du cas test dans le titre de la fenetre + see History

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