Changeset 133 in PSPA for Interface_Web/trunk/pspaWT/include
- Timestamp:
- Dec 4, 2012, 1:57:53 PM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_LigneFaisceau.h
r126 r133 27 27 WHBoxLayout* beamLayout_; 28 28 PspaApplication* pspa_; 29 //Compteur *nObjets_[nElements];30 29 Compteur *nObjets_; 31 30 32 //string createLabel(abstractElement* elem, int n);33 31 string createLabel(nomdElements el,int n); 34 32 35 33 public : 34 35 GWt_LigneFaisceau() {;} 36 GWt_LigneFaisceau(PspaApplication*); 36 37 37 GWt_LigneFaisceau(PspaApplication*); 38 ~GWt_LigneFaisceau() { 39 if(nObjets_ != NULL) delete[] nObjets_; 40 } 41 38 42 void restoreElementCollection(); 39 43 -
Interface_Web/trunk/pspaWT/include/globalParameters.h
r50 r133 6 6 #include <fstream> 7 7 8 9 8 using namespace std; 10 9 11 10 class globalParameters 11 { 12 double frequencyDef_; 13 double integrationStepDef_; 14 int nstepsMaxDef_; 15 int nscDef_; 12 16 13 { 14 15 double frequencyDef_; 16 double integrationStepDef_; 17 int nstepsMaxDef_; 18 int nscDef_; 19 20 double frequency_; 21 double integrationStep_; 22 int nstepsMax_; 23 int nsc_; 17 double frequency_; 18 double integrationStep_; 19 int nstepsMax_; 20 int nsc_; 24 21 25 22 int nbParam_; 26 23 string* parametersString_; 27 24 25 void setDefaultValues() 26 { 27 frequencyDef_ = 2998.652; 28 integrationStepDef_ = 1.0; 29 nstepsMaxDef_ = 100000; 30 nscDef_ = 10; 31 } 28 32 29 void setDefaultValues() 30 { 31 frequencyDef_ = 2998.652; 32 integrationStepDef_ = 1.0; 33 nstepsMaxDef_ = 100000; 34 nscDef_ = 10; 35 } 36 void setDefaults() 37 { 38 frequency_ = frequencyDef_; 39 integrationStep_ = integrationStepDef_; 40 nstepsMax_ = nstepsMaxDef_; 41 nsc_ = nscDef_; 42 } 43 44 45 46 public: 47 globalParameters(); 48 49 ~globalParameters() 50 { 51 if ( parametersString_ != NULL) delete [] parametersString_; 52 } 53 54 inline void raz() { setDefaults();} 55 56 inline double getFrequency() const {return frequency_;} 57 inline double getIntegrationStep() const {return integrationStep_;} 58 inline int getNbSteps() const {return nstepsMax_;} 59 60 inline int getScPeriod() const {return nsc_;} 61 33 void setDefaults() 34 { 35 frequency_ = frequencyDef_; 36 integrationStep_ = integrationStepDef_; 37 nstepsMax_ = nstepsMaxDef_; 38 nsc_ = nscDef_; 39 } 40 41 public: 42 43 globalParameters(); 44 ~globalParameters() 45 { 46 if ( parametersString_ != NULL) delete [] parametersString_; 47 } 48 49 inline void raz() { setDefaults();} 50 inline double getFrequency() const {return frequency_;} 51 inline double getIntegrationStep() const {return integrationStep_;} 52 inline int getNbSteps() const {return nstepsMax_;} 53 inline int getScPeriod() const {return nsc_;} 62 54 string* getParametersString() const; 63 64 65 void setParametersString(string* param); 66 67 string FileOutputFlow() const; 68 69 void FileInput(ifstream& ifs); 70 71 55 void setParametersString(string* param); 56 string FileOutputFlow() const; 57 void FileInput(ifstream& ifs); 72 58 }; 73 74 59 #endif
Note: See TracChangeset
for help on using the changeset viewer.