Ignore:
Timestamp:
Feb 26, 2013, 2:35:45 PM (11 years ago)
Author:
touze
Message:

nvx element snapshot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/controler/include/dataManager.h

    r341 r342  
    1818{
    1919  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_;}
    2129   
    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);
    2831   
    29     particleBeam* getDiagnosticBeam(unsigned index);
     32  void addSectionToExecute(int debut, int fin, nomDeLogiciel prog);
    3033   
    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  /**
    3738     Get the label from the order number in the beam line
    3839     @return return "" if not found
    39      */
    40     string getLabelFromElementNumero(int numero);
    41 
    42     /**
     40  */
     41  string getLabelFromElementNumero(int numero);
     42 
     43  /**
    4344     Get the numero from the label in the beam line
    4445     @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  }
    4862   
    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_;
    5968   
    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  };
    7475#endif
Note: See TracChangeset for help on using the changeset viewer.