Ignore:
Timestamp:
Sep 30, 2013, 5:03:21 PM (11 years ago)
Author:
touze
Message:

sauvgarde de la configuration sur fichier format AML

File:
1 edited

Legend:

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

    r419 r424  
    4747  */
    4848  int getNumeroFromElementLabel(string);
    49     abstractElement*  getElementPointerFromNumero(int);
     49  abstractElement*  getElementPointerFromNumero(int);
    5050 
    5151  void initializeExecution();
     
    6161   @param filename
    6262   */
    63     void saveConfiguration(string folder, string filename);
     63  void saveConfiguration(string folder, string filename);
     64  bool restoreElements(string inputFileName);
     65 
     66  void writeToAMLFile(string fileName);
    6467   
    65     bool restoreElements(string inputFileName);
    66    
    67    
    68     /** return the jobList size
    69      */
    70     inline int getJobListSize() const {
    71         return jobList_.size();
     68  /** return the jobList size
     69   */
     70  inline int getJobListSize() const {
     71    return jobList_.size();
     72  }
     73 
     74  // si newBeam = true, on cree un nouveau diag
     75  // si newBeam = false, on utilise le dernier
     76  inline particleBeam* updateCurrentDiagnostic(bool newBeam) {
     77    if ( newBeam ) {
     78      diagnosticBeam_.push_back(particleBeam());
    7279    }
    73 
    74     // si newBeam = true, on cree un nouveau diag
    75     // si newBeam = false, on utilise le dernier
    76     inline particleBeam* updateCurrentDiagnostic(bool newBeam) {
    77       if ( newBeam ) {
    78         diagnosticBeam_.push_back(particleBeam());
    79       }
    80       indexElementToIndexDiag_.push_back(diagnosticBeam_.size() -1);
    81       return &diagnosticBeam_.back();
    82     }
    83 
    84     /** return a specific jobList index
    85      return NULL if the index does not exist
    86      */
    87 
    88     /* inline sectionToExecute* getJobListAt(int a) { */
     80    indexElementToIndexDiag_.push_back(diagnosticBeam_.size() -1);
     81    return &diagnosticBeam_.back();
     82  }
     83 
     84  /** return a specific jobList index
     85      return NULL if the index does not exist
     86  */
     87 
     88  /* inline sectionToExecute* getJobListAt(int a) { */
    8989    /*     if (a < 0) return NULL; */
    9090    /*     if (a >= getJobListSize()) return NULL; */
     
    9292    /* } */
    9393
    94 
    95 
     94 
     95 
    9696    /* inline const abstractSoftware* getSoftwareOfSection( int index) const { */
    9797    /*     if (index < 0) return NULL; */
     
    101101   
    102102    /** Clear a specific jobList */
    103     void clearSectionToExecute(int a);
     103  void clearSectionToExecute(int a);
    104104   
    105 private:
    106     globalParameters globParam_;
    107     particleBeam* currentBeam_;
     105 private:
     106
     107  globalParameters globParam_;
     108  particleBeam* currentBeam_;
    108109  PspaApplication* pspa_;
    109110  unsigned firstComputedElemNumero_;
    110111  unsigned lastComputedElemNumero_;
    111 
    112     vector<particleBeam> diagnosticBeam_;
    113     vector<unsigned> indexElementToIndexDiag_;
    114     // numeroElementToIndexDiag_[k] contient, pour l'element d'index k, l'indice ind tel que diagnosticBeam_[ind]
    115     // soit le faisceau resultat, en l'etat qu'il doit avoir apres l'element k
    116 
    117     vector<sectionToExecute*> jobList_;
    118    
    119     void removeFile(string nameOfFile);
    120     void clearSectionToExecute();
    121      abstractSoftware* createSoftwareConnexion(nomDeLogiciel logi);
    122 
    123   };
     112 
     113  vector<particleBeam> diagnosticBeam_;
     114  vector<unsigned> indexElementToIndexDiag_;
     115  // numeroElementToIndexDiag_[k] contient, pour l'element d'index k, l'indice ind tel que diagnosticBeam_[ind]
     116  // soit le faisceau resultat, en l'etat qu'il doit avoir apres l'element k
     117 
     118  vector<sectionToExecute*> jobList_;
     119 
     120  void removeFile(string nameOfFile);
     121  void clearSectionToExecute();
     122  abstractSoftware* createSoftwareConnexion(nomDeLogiciel logi);
     123};
    124124#endif
Note: See TracChangeset for help on using the changeset viewer.