Changeset 342 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/include/dataManager.h
- Timestamp:
- Feb 26, 2013, 2:35:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/dataManager.h
r341 r342 18 18 { 19 19 abstractSoftware* createSoftwareConnexion(nomDeLogiciel logi); 20 public: 20 21 public: 22 23 dataManager(PspaApplication*); 24 virtual ~dataManager(); 25 void consoleMessage(string message); 26 int getBeamLineSize(); 27 inline globalParameters* getGlobalParameters() {return &globParam_;} 28 inline particleBeam* getCurrentBeam() {return currentBeam_;} 21 29 22 dataManager(PspaApplication*); 23 virtual ~dataManager(); 24 void consoleMessage(string message); 25 int getBeamLineSize(); 26 inline globalParameters* getGlobalParameters() {return &globParam_;} 27 inline particleBeam* getCurrentBeam() {return currentBeam_;} 30 particleBeam* getDiagnosticBeam(unsigned index); 28 31 29 particleBeam* getDiagnosticBeam(unsigned index);32 void addSectionToExecute(int debut, int fin, nomDeLogiciel prog); 30 33 31 void addSectionToExecute(int debut, int fin, nomDeLogiciel prog); 32 33 abstractElement* addElement(typedElement elemType); 34 void removeElement(string); 35 36 /** 34 abstractElement* addElement(typedElement elemType); 35 void removeElement(string); 36 37 /** 37 38 Get the label from the order number in the beam line 38 39 @return return "" if not found 39 40 41 42 40 */ 41 string getLabelFromElementNumero(int numero); 42 43 /** 43 44 Get the numero from the label in the beam line 44 45 @return return -1 if not found 45 */ 46 int getNumeroFromElementLabel(string); 47 abstractElement* getElementPointerFromNumero(int); 46 */ 47 int getNumeroFromElementLabel(string); 48 abstractElement* getElementPointerFromNumero(int); 49 50 void initializeExecution(); 51 trivaluedBool checkExecute(string& diagnostic); 52 trivaluedBool checkElementsForExec(nomDeLogiciel logiciel, unsigned indexDeb, unsigned indexFin, string& diagnostic); 53 bool executeAll(); 54 void saveConfiguration(string nameOfCase); 55 bool restoreElements(string inputFileName); 56 void donneesRmsEnveloppe( string type, unsigned int numeroDeb, unsigned int numeroFin, vector<double>& xcor, vector<double>& ycor); 57 void donneesRmsEnveloppe(string type,unsigned int lineSize,vector<double>& xcor,vector<double>& ycor); 58 59 inline void setWorkingDir(string wd) { 60 workingDir_ = wd; 61 } 48 62 49 void initializeExecution(); 50 trivaluedBool checkExecute(string& diagnostic); 51 trivaluedBool checkElementsForExec(nomDeLogiciel logiciel, unsigned indexDeb, unsigned indexFin, string& diagnostic); 52 bool executeAll(); 53 void saveConfiguration(string nameOfCase); 54 bool restoreElements(string inputFileName); 55 void donneesRmsEnveloppe( string type, unsigned int numeroDeb, unsigned int numeroFin, vector<double>& xcor, vector<double>& ycor); 56 /* inline void setWorkingDir(string wd) { */ 57 /* workingDir_ = wd; */ 58 /* } */ 63 private : 64 65 PspaApplication* pspa_; 66 globalParameters globParam_; 67 particleBeam* currentBeam_; 59 68 60 private: 61 globalParameters globParam_; 62 particleBeam* currentBeam_; 63 64 vector<particleBeam> diagnosticBeam_; 65 66 vector<sectionToExecute*> jobList_; 67 68 void removeFile(string nameOfFile); 69 void clearSectionToExecute(); 70 71 // string workingDir_; 72 PspaApplication* pspa_; 73 }; 69 vector<particleBeam> diagnosticBeam_; 70 vector<sectionToExecute*> jobList_; 71 72 void removeFile(string nameOfFile); 73 void clearSectionToExecute(); 74 }; 74 75 #endif
Note: See TracChangeset
for help on using the changeset viewer.