Changeset 50 in PSPA for Interface_Web/trunk/pspaWT/include
- Timestamp:
- Nov 3, 2012, 12:15:30 PM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT/include
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_LigneFaisceau.h
r48 r50 4 4 #include "dataManager.h" 5 5 #include "GWt_pspaApplication.h" 6 #include "abstractElement.h" 6 7 7 8 #include <Wt/WApplication> … … 22 23 { 23 24 25 // WVBoxLayout* tempVBox_; 24 26 WHBoxLayout* beamLayout_; 25 27 // dataManager* dtmanage_; … … 28 30 public: 29 31 GWt_LigneFaisceau(PspaApplication*); 30 32 void restoreElementCollection(); 31 33 private: 32 34 void dropEvent(WDropEvent evt); -
Interface_Web/trunk/pspaWT/include/GWt_globalParameters.h
r41 r50 32 32 GWt_globalParameters(PspaApplication* ps); 33 33 34 void updateGlobals(); 35 36 37 void renew(); 34 38 35 39 void lancerCalcul(); -
Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h
r41 r50 35 35 return dtmanage_; 36 36 } 37 37 void sauver(); 38 void restaurer(); 38 39 private : 39 40 WTextArea* console_; 40 41 dataManager* dtmanage_; 42 WWidget* globalParam_; 43 WWidget* beamLine_; 41 44 }; 42 45 -
Interface_Web/trunk/pspaWT/include/abstractElement.h
r48 r50 5 5 #include <sstream> 6 6 #include <string> 7 8 7 9 8 #include "mathematicalTools.h" … … 108 107 virtual string parmelaOutputFlow() const =0; 109 108 109 110 110 virtual double getInitialKineticEnergy() const {return 0.0;} 111 112 113 virtual string FileOutputFlow() const=0; 114 virtual void FileInput(ifstream& ifs) = 0; 111 115 112 116 }; -
Interface_Web/trunk/pspaWT/include/dataManager.h
r48 r50 5 5 #include "elementsCollection.h" 6 6 #include "globalParameters.h" 7 //#include "driftDefinition.h"7 #include "nomdElements.h" 8 8 //using namespace std; 9 9 … … 26 26 inline int beamLineSize() {return elementsGallery_.size();} 27 27 inline globalParameters* getGlobalParameters() {return &globParam_;} 28 inline elementsCollection* getCollection() {return &elementsGallery_;} 29 abstractElement* addElement(nomdElement elemType); 28 30 abstractElement* addCell(); 29 31 abstractElement* addDrift(); 30 32 abstractElement* addInitialBeam(); 31 33 void executeAll(); 34 void saveAll(); 35 void restoreAll(); 36 32 37 }; 33 38 -
Interface_Web/trunk/pspaWT/include/elementBend.h
r45 r50 51 51 } 52 52 53 virtual string FileOutputFlow() const 54 { 55 ostringstream sortie; 56 cout << " BEND sortie fichier non programmee " << endl; 57 return sortie.str(); 58 } 53 59 60 61 virtual void FileInput(ifstream& ifs) 62 { 63 cout << " BEND lecture fichier non programmee " << endl; 64 } 54 65 }; 55 66 -
Interface_Web/trunk/pspaWT/include/elementCell.h
r48 r50 3 3 4 4 #include <string> 5 #include <fstream> 5 6 #include "abstractElement.h" 6 7 … … 50 51 virtual string parmelaOutputFlow() const; 51 52 53 virtual string FileOutputFlow() const; 54 55 virtual void FileInput(ifstream& ifs); 52 56 53 57 }; -
Interface_Web/trunk/pspaWT/include/elementDrift.h
r45 r50 4 4 5 5 #include "abstractElement.h" 6 7 6 8 7 using namespace std; … … 27 26 virtual string parmelaOutputFlow() const; 28 27 28 virtual string FileOutputFlow() const; 29 30 virtual void FileInput(ifstream& ifs); 31 29 32 }; 30 33 -
Interface_Web/trunk/pspaWT/include/elementInitialBeam.h
r45 r50 6 6 7 7 #include "abstractElement.h" 8 8 9 9 10 using namespace std; … … 52 53 virtual string parmelaOutputFlow() const; 53 54 55 virtual string FileOutputFlow() const; 56 57 virtual void FileInput(ifstream& ifs); 58 59 54 60 }; 55 61 -
Interface_Web/trunk/pspaWT/include/elementSoleno.h
r45 r50 51 51 } 52 52 53 54 virtual string FileOutputFlow() const 55 { 56 ostringstream sortie; 57 cout << " SOLENO sortie fichier non progerammee " << endl; 58 return sortie.str(); 59 } 60 61 virtual void FileInput(ifstream& ifs) 62 { 63 cout << " SOLENO lecture fichier non programmee " << endl; 64 } 65 53 66 }; 54 67 #endif -
Interface_Web/trunk/pspaWT/include/elementsCollection.h
r48 r50 34 34 } 35 35 } 36 37 inline void raz() 38 { 39 unsigned int k; 40 for (k=0; k < elements_.size(); k++) 41 { 42 if ( elements_[k] != NULL ) delete elements_[k]; 43 } 44 elements_.clear(); 45 } 36 46 37 47 inline int size() { return elements_.size(); } -
Interface_Web/trunk/pspaWT/include/globalParameters.h
r42 r50 4 4 #include <iostream> 5 5 #include <string> 6 #include <fstream> 6 7 7 8 8 9 using namespace std; 9 10 10 class globalParameters 11 class globalParameters 11 12 12 13 { … … 51 52 } 52 53 54 inline void raz() { setDefaults();} 55 53 56 inline double getFrequency() const {return frequency_;} 54 57 inline double getIntegrationStep() const {return integrationStep_;} … … 62 65 void setParametersString(string* param); 63 66 67 string FileOutputFlow() const; 68 69 void FileInput(ifstream& ifs); 70 71 64 72 }; 65 73 -
Interface_Web/trunk/pspaWT/include/nomdElements.h
r38 r50 2 2 #define NOMDELEMENTS_SEEN 3 3 4 #include <string> 5 6 using namespace std; 4 7 5 8 typedef enum
Note: See TracChangeset
for help on using the changeset viewer.