Ignore:
Timestamp:
Dec 16, 2013, 5:16:54 PM (10 years ago)
Author:
garnier
Message:

grosse modification pour intégrer les sections

File:
1 edited

Legend:

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

    r449 r455  
    33
    44#include <vector>
    5 #include "sectionToExecute.h"
     5#include <string>
     6
     7#include "nomDeLogiciel.h"
     8#include "sectorParameters.h"
     9
     10class sectionToExecute;
     11class abstractElement;
     12class dataManager;
    613
    714class sector
     
    916  public :
    1017 
    11   sector(std::string name = "sector default name");
     18  sector(dataManager*, std::string name = "sector default name");
    1219  virtual ~sector();
    1320  /**
     
    4754   */
    4855  inline std::string getName() { return name_;};
    49 
    50   /**
    51    Return the vector of sectors inside this sector
    52    */
    53   inline std::vector <sector*> getInnerSectors() { return sectors_;};
    54 
    55   /**
    56    Add an inner sector
    57    */
    58   inline void addInnerSector(sector* s) {
    59     if (s) sectors_.push_back(s);
    60   };
    6156 
    6257  /**
     
    7267  };
    7368 
     69  /** Add an element after another one. Will put it in the same sectionToExecuteList. If the element after is NULL
     70   it will create a new sectionToExecute and put it inside.
     71   */
     72  void addElementAfter(abstractElement*,abstractElement*);
     73 
     74  /**
     75 set the specific software for the given sectionToExecute number
     76 */
     77  bool setSoftware(nomDeLogiciel, unsigned int sectionToExecuteNumber);
     78
     79  void clearSectionToExecute();
     80  /** Clear a specific jobList */
     81  void clearSectionToExecute(int a);
     82
     83  inline sectorParameters getSectorParameters() {
     84    return sectorParam_;
     85  }
     86
    7487private:
    75   std::vector <sector*> sectors_;
     88
    7689  std::vector <sectionToExecute*> sectionToExecute_;
    7790
     
    8093  sector* duplicatedFrom_;
    8194  unsigned int repetitionNumber_;
     95  dataManager* dataManager_;
     96  sectorParameters sectorParam_; //xx
    8297};
    8398#endif
Note: See TracChangeset for help on using the changeset viewer.