Changeset 179 in PSPA for Interface_Web/trunk/pspaWT/include
- Timestamp:
- Dec 13, 2012, 7:25:01 PM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_bend.h
r153 r179 4 4 #include "GWt_pspaApplication.h" 5 5 #include "GWt_abstractElement.h" 6 #include "abstractElement.h"7 8 #include <iostream>9 #include <string>10 #include <sstream>11 12 using namespace Wt;13 using namespace std;14 6 15 7 class GWt_bend : public GWt_abstractElement -
Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h
r177 r179 33 33 34 34 dataManager* dtmanage_; 35 35 string nameOfCase_; 36 37 WDialog* dialogSave_; 38 WLineEdit* saveNameEdit_; 39 40 36 41 WContainerWidget* console_; 37 42 WWidget* globalParam_; … … 58 63 void executer(); 59 64 void sauver(); 65 void dialogSaveDone(); 60 66 void restaurer(); 61 67 void chargerConfig(); -
Interface_Web/trunk/pspaWT/include/dataManager.h
r149 r179 22 22 23 23 void createInputFileParmela( unsigned int indexDeb, unsigned int indexFin); 24 bool createInputFileTransport( unsigned int indexDeb, unsigned int indexFin);24 bool createInputFileTransport( unsigned int numeroDeb, unsigned int numeroFin); 25 25 void removeFile(string nameOfFile); 26 26 void clearSectionToExecute(); … … 53 53 bool executeParmela( unsigned int indexDeb, unsigned int indexFin, string& resul); 54 54 bool executeAll(string& resul); 55 void save All();55 void saveConfiguration(string nameOfFile); 56 56 void restoreElements(); 57 57 void donneesRmsEnveloppe( string type, unsigned int numeroDeb, unsigned int numeroFin, vector<double>& xcor, vector<double>& ycor); -
Interface_Web/trunk/pspaWT/include/nomdElements.h
r160 r179 4 4 using namespace std; 5 5 6 enum typedElement {RFgun, drift, cell, bend, soleno, inconnu};6 enum typedElement {RFgun, drift, cell, bend, soleno, beam, inconnu}; 7 7 8 8 … … 14 14 std::string eImg_; // nom du fichier de l'icone 15 15 std::string eLabel_; // label affiche sous l'icone 16 16 unsigned nbParam_; // nombre de parametres a saisir 17 17 18 18 static typedElement fromImage(std::string s); … … 20 20 static std::string toImage(typedElement eType); 21 21 static std::string toLabel(typedElement eType); 22 static unsigned toNbParam(typedElement eType); 22 23 23 24 public : … … 38 39 std::string getElementLabel() const; 39 40 std::string getElementImage() const; 41 unsigned getElementNbParameters() const; 40 42 41 43 // operators -
Interface_Web/trunk/pspaWT/include/particleBeam.h
r166 r179 12 12 #include "mathematicalTools.h" 13 13 #include "nomdElements.h" 14 #include "transportMoments.h" 14 15 15 16 using namespace std; … … 43 44 vector<bareParticle> goodPartic_; 44 45 45 vector< vector<double> > rij_transportMoments_; 46 transportMoments rij_; 47 48 // vector< vector<double> > rij_transportMoments_; 46 49 vector<double> centroid_; 47 50 double P0Transport_; … … 65 68 bool setFromTransport(string elementLabel, const nomdElements elem); 66 69 70 // void setFromBeamParameters(double x, double xp, double y, double yp, double dl, double del, double P0); 71 72 73 67 74 void clear(); 68 75 69 76 int getNbParticles() const; 70 77 71 const vector< vector<double> >& getTransportMoments() const;78 const transportMoments& getTransportMoments() const; 72 79 double getP0Transport() const; 73 80 bool particleRepresentationOk() const;
Note: See TracChangeset
for help on using the changeset viewer.