Ignore:
Timestamp:
Dec 16, 2013, 5:16:54 PM (11 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/sectionToExecute.h

    r431 r455  
    99{
    1010 public :
     11  /** Create a new sectionToExecute and initialize it with the given element
     12   */
     13  sectionToExecute(abstractElement*);
    1114
    12   sectionToExecute(abstractElement*,abstractElement*,abstractSoftware*);
     15  /** Create a new sectionToExecute and initialize it with the given element and software
     16   */
     17  sectionToExecute(abstractElement*,abstractSoftware*);
    1318 
    1419  /** Deprecated : To be removed ! */
     
    1722  ~sectionToExecute() {;}
    1823
    19   inline abstractElement* getFirstElement() {
    20     return firstElement;
    21   }
    22    
    23   inline abstractElement* getLastElement() {
    24     return lastElement;
    25   }
    26    
    27   /** Deprecated : To be removed ! */
    28   inline int getElementNumberInSection() const {
    29     return firstElementNumberInBeamLine;
    30   }
    31    
    32   /** Deprecated : To be removed ! */
    33   inline int getLastElementNumberInSection()  const {
    34     return lastElementNumberInBeamLine;
    35   }
    36 
    3724  inline abstractSoftware* getSoftware() const {
    38     return software;
     25    return software_;
    3926  }
    4027 
    41  private :
     28  inline abstractSoftware* setSoftware(abstractSoftware* soft) {
     29    software_ = soft;
     30  }
     31 
     32  /**
     33   Get the vector of elements of this sector
     34   */
     35  inline std::vector< abstractElement* > getElements() {return elements_;};
     36 
     37  bool insertAfter(abstractElement*,abstractElement*);
    4238
    43   abstractElement*  firstElement;
    44   abstractElement*  lastElement;
    45   abstractSoftware* software;
     39  private :
    4640
    47   int firstElementNumberInBeamLine;
    48   int lastElementNumberInBeamLine; 
     41  abstractSoftware* software_;
     42
     43  std::vector< abstractElement* > elements_;
    4944};
    5045#endif
Note: See TracChangeset for help on using the changeset viewer.