Changeset 82 in PSPA for Interface_Web/trunk/pspaWT/include
- Timestamp:
- Nov 16, 2012, 2:19:21 PM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT/include
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_drift.h
r41 r82 32 32 33 33 GWt_drift() {;} 34 ~GWt_drift() {;}35 34 36 35 public: 37 36 37 38 38 GWt_drift(PspaApplication* ps, abstractElement* elem, string image); 39 40 ~GWt_drift() {;} 41 39 42 WPushButton* getButton(); 40 43 WDialog* getDialog(); -
Interface_Web/trunk/pspaWT/include/abstractElement.h
r50 r82 40 40 void setDefaultValues() 41 41 { 42 label_ = ""; 42 43 nbParam_ = 2; 43 44 defaultLength_ = 0.0; … … 106 107 107 108 virtual string parmelaOutputFlow() const =0; 109 virtual string transportOutputFlow() const =0; 108 110 109 111 -
Interface_Web/trunk/pspaWT/include/dataManager.h
r59 r82 25 25 particleBeam currentBeam_; 26 26 27 vector<sectionToExecute*> jobList_;27 // vector<sectionToExecute*> jobList_; 28 28 29 29 void createInputFileParmela( unsigned int indexDeb, unsigned int indexFin); … … 37 37 ~dataManager() 38 38 { 39 unsigned k; 40 41 for (k=0; k < jobList_.size();k++) 42 { 43 if ( jobList_[k] != NULL ) delete jobList_[k]; 44 } 39 /* unsigned k; */ 40 /* for (k=0; k < jobList_.size();k++) */ 41 /* { */ 42 /* if ( jobList_[k] != NULL ) delete jobList_[k]; */ 43 /* } */ 45 44 } 46 45 … … 50 49 inline particleBeam& getCurrentBeam() {return currentBeam_;} 51 50 52 void addSectionToExecute(int debut, int fin, nomDeLogiciel prog);53 void clearSectionToExecute();51 // void addSectionToExecute(int debut, int fin, nomDeLogiciel prog); 52 // void clearSectionToExecute(); 54 53 55 54 abstractElement* addElement(nomdElement elemType); … … 57 56 abstractElement* addDrift(); 58 57 abstractElement* addInitialBeam(); 58 abstractElement* addSoleno(); 59 void initializeExecution(); 59 60 string executeTransport( unsigned int indexDeb, unsigned int indexFin); 60 61 string executeParmela( unsigned int indexDeb, unsigned int indexFin); 61 string executeAll();62 // string executeAll(); 62 63 void saveAll(); 63 64 void restoreAll(); -
Interface_Web/trunk/pspaWT/include/elementBend.h
r50 r82 51 51 } 52 52 53 virtual string transportOutputFlow() const 54 { 55 ostringstream sortie; 56 cout << " BEND sortie transport non programmee " << endl; 57 return sortie.str(); 58 } 59 53 60 virtual string FileOutputFlow() const 54 61 { -
Interface_Web/trunk/pspaWT/include/elementCell.h
r50 r82 51 51 virtual string parmelaOutputFlow() const; 52 52 53 virtual string transportOutputFlow() const 54 { 55 ostringstream sortie; 56 cout << " CELL sortie transport non programmee " << endl; 57 return sortie.str(); 58 } 59 60 53 61 virtual string FileOutputFlow() const; 54 62 -
Interface_Web/trunk/pspaWT/include/elementDrift.h
r50 r82 10 10 { 11 11 12 // int nbParam_;13 // string* parametersString_;14 12 15 13 public: … … 26 24 virtual string parmelaOutputFlow() const; 27 25 26 virtual string transportOutputFlow() const 27 { 28 ostringstream sortie; 29 cout << " DRIFT sortie transport non programmee " << endl; 30 return sortie.str(); 31 } 32 33 28 34 virtual string FileOutputFlow() const; 29 35 -
Interface_Web/trunk/pspaWT/include/elementInitialBeam.h
r59 r82 53 53 virtual string parmelaOutputFlow() const; 54 54 55 virtual string transportOutputFlow() const 56 { 57 ostringstream sortie; 58 cout << " CELL sortie transport non programmee " << endl; 59 return sortie.str(); 60 } 61 55 62 virtual string FileOutputFlow() const; 56 63 -
Interface_Web/trunk/pspaWT/include/elementSoleno.h
r50 r82 13 13 { 14 14 15 double B0_; // en unites internes ( cm^(-1) ) 15 double B0_; // en kilogauss 16 double B0Def_; // en kilogauss 17 18 19 20 21 void setDefaultValues(); 22 void setDefaults(); 23 24 16 25 17 26 public : 18 27 19 elementSoleno() : abstractElement() {elementName_ = sole;}28 elementSoleno(); 20 29 21 elementSoleno(string lab) : abstractElement(lab)22 {23 elementName_ = sole;24 cout << " creation d'un SOLENOIDE l= " << ll << ", ap= " << ap << ", pas max " << stepmaxcm_ << endl;30 /* elementSoleno(string lab) : abstractElement(lab) */ 31 /* { */ 32 /* elementName_ = sole; */ 33 /* cout << " creation d'un SOLENOIDE l= " << ll << ", ap= " << ap << ", pas max " << stepmaxcm_ << endl; */ 25 34 26 B0_ = GAUSSToCMm1*BGauss;27 cout << " champ (Gauss) " << BGauss << ", (cm-1) " << B0_ << endl;28 }35 /* B0_ = GAUSSToCMm1*BGauss; */ 36 /* cout << " champ (Gauss) " << BGauss << ", (cm-1) " << B0_ << endl; */ 37 /* } */ 29 38 30 39 ~elementSoleno() {;} 31 40 32 virtual void setParametersString(string* param) 33 { 34 ostringstream sortie; 35 cout << " SOLENO setParametersString non programme " << endl; 36 return sortie.str(); 37 } 41 virtual void setParametersString(string* param); 38 42 39 virtual string* getParametersString() const 40 { 41 ostringstream sortie; 42 cout << " SOLENO getParametersString non programme " << endl; 43 return sortie.str(); 44 } 43 virtual string* getParametersString() const; 45 44 46 virtual string parmelaOutputFlow() const 47 { 48 ostringstream sortie; 49 cout << " SOLENO sortie parmela non progerammee " << endl; 50 return sortie.str(); 51 } 45 virtual string parmelaOutputFlow() const; 52 46 47 virtual string transportOutputFlow() const; 53 48 54 virtual string FileOutputFlow() const 55 { 56 ostringstream sortie; 57 cout << " SOLENO sortie fichier non progerammee " << endl; 58 return sortie.str(); 59 } 49 virtual string FileOutputFlow() const; 60 50 61 virtual void FileInput(ifstream& ifs) 62 { 63 cout << " SOLENO lecture fichier non programmee " << endl; 64 } 51 virtual void FileInput(ifstream& ifs); 65 52 66 53 }; -
Interface_Web/trunk/pspaWT/include/elementsCollection.h
r50 r82 9 9 #include "elementInitialBeam.h" 10 10 #include "elementCell.h" 11 #include "elementSoleno.h" 11 12 12 13 … … 66 67 67 68 69 inline abstractElement* createNewSoleno() 70 { 71 elements_.push_back(new elementSoleno()); 72 return elements_.back(); 73 } 74 75 76 68 77 69 78 inline abstractElement* getElementPointer(string label) const -
Interface_Web/trunk/pspaWT/include/nomdElements.h
r58 r82 7 7 typedef enum 8 8 { 9 initialBeam, drift, cell, bend, sole , solenoidalBmap9 initialBeam, drift, cell, bend, soleno 10 10 } nomdElement; 11 11
Note: See TracChangeset
for help on using the changeset viewer.