Ignore:
Timestamp:
Nov 23, 2012, 2:02:08 PM (12 years ago)
Author:
lemeur
Message:

alerte en cas d'erreur d'execution

File:
1 edited

Legend:

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

    r95 r105  
    2525  particleBeam currentBeam_;
    2626
    27   //    vector<sectionToExecute*> jobList_;
     27  vector<sectionToExecute*> jobList_;
    2828
    2929  void createInputFileParmela( unsigned int indexDeb, unsigned int indexFin);
    3030  void createInputFileTransport( unsigned int indexDeb, unsigned int indexFin);
     31  void removeFile(string nameOfFile);
     32     void clearSectionToExecute();
    3133
    3234
     
    3739  ~dataManager()
    3840{
    39   /* unsigned k; */
    40   /* for (k=0; k < jobList_.size();k++) */
    41   /*   { */
    42   /*     if ( jobList_[k] != NULL ) delete jobList_[k]; */
    43   /*   } */
     41  unsigned k;
     42  for (k=0; k < jobList_.size();k++)
     43    {
     44      if ( jobList_[k] != NULL ) delete jobList_[k];
     45    }
    4446}
    4547
     
    4951  inline particleBeam& getCurrentBeam() {return currentBeam_;}
    5052
    51   //    void addSectionToExecute(int debut, int fin, nomDeLogiciel prog);
    52   //    void clearSectionToExecute();
     53     void addSectionToExecute(int debut, int fin, nomDeLogiciel prog);
    5354 
    5455  abstractElement* addElement(nomdElement elemType);
    55   /* abstractElement* addCell(); */
    56   /* abstractElement* addDrift(); */
    57   /* abstractElement* addInitialBeam(); */
    58   /* abstractElement* addSoleno(); */
    59   /* abstractElement* addBend(); */
    6056  void initializeExecution();
    61   string executeTransport( unsigned int indexDeb, unsigned int indexFin);
    62   string executeParmela( unsigned int indexDeb, unsigned int indexFin);
    63   //  string executeAll();
     57  string checkExecute();
     58  bool executeTransport( unsigned int indexDeb, unsigned int indexFin, string& resul);
     59  bool executeParmela( unsigned int indexDeb, unsigned int indexFin, string& resul);
     60  bool executeAll(string& resul);
    6461  void saveAll();
    6562  void restoreAll();
Note: See TracChangeset for help on using the changeset viewer.