Ignore:
Timestamp:
Mar 11, 2014, 11:21:43 AM (10 years ago)
Author:
lemeur
Message:

refection generale des secteurs et applications de softwares (suite)

File:
1 edited

Legend:

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

    r488 r493  
    1414#include "nomDeLogiciel.h"
    1515#include "sector.h"
     16#include "expandedMachine.h"
     17#include "computingBlock.h"
    1618
    1719#include "sectorParameters.h" //xx
     
    2426 public:
    2527 
    26   dataManager() {;}
     28 dataManager() :   
     29  pspa_ (NULL),
     30    currentMachine_(NULL)
     31      {;}
    2732  dataManager(PspaApplication*);
    2833  virtual ~dataManager();
     
    3338  particleBeam* getDiagnosticBeam_deprecated(string elementLabel);
    3439
     40
     41  //provisoire
     42  inline expandedMachine* getCurrentMachine() {return currentMachine_;}
     43
     44  inline expandedMachine* expandMachine() {
     45    if ( !currentMachine_ ) currentMachine_ = new expandedMachine(this);
     46    currentMachine_->fromSectors( sectors_, this );
     47    return currentMachine_;
     48  }
     49
     50  bool areDataCoherent() {
     51    bool resultat = false;
     52    if ( !currentMachine_ ) return false;
     53    resultat = currentMachine_->areDataCoherent();
     54    return resultat;
     55  }
     56
     57
    3558/** Add a new sector
    3659 */
     
    3962  /** return all sectors
    4063   */
    41   inline std::vector <sector*> getSectors() {return jobList_;};
     64  inline std::vector <sector*> getSectors() {return sectors_;};
    4265 
    4366 
     
    6083  void writeToAMLFile(string fileName);
    6184   
    62   /** return the jobList size
     85  /** return the sectors size
    6386   */
    64   inline unsigned long getJobListSize() const {
    65     return jobList_.size();
    66   }
     87  //  inline unsigned long getSectorsSize() const {
     88  //    return sectors_.size();
     89  // }
    6790 
    6891  // si newBeam = true, on cree un nouveau diag
     
    84107  };
    85108
    86  
     109  abstractElement* getElementInSectorsByLabel(string etiq);
     110
     111
     112  void messageEcran(string niveau, string msg) const;
     113
     114
     115
    87116 private:
    88117
     
    92121  vector<particleBeam> diagnosticBeam_;
    93122  vector<unsigned> indexElementToIndexDiag_;
    94   vector <sector*> jobList_;
     123  //  vector <sector*> jobList_;
     124  vector <sector*> sectors_;
     125  expandedMachine* currentMachine_;
    95126  void removeFile(string nameOfFile);
    96127};
Note: See TracChangeset for help on using the changeset viewer.