Ignore:
Timestamp:
Dec 19, 2013, 3:53:53 PM (11 years ago)
Author:
garnier
Message:

Désormais il est de nouveau possible d'ajouter des sections et dy affecter des softwares (ne marche pour le moment quavec la 1ere sectionToExecute. Autres améliorations et renommages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/controler/src/sector.cc

    r455 r469  
    88
    99#include "sector.h"
    10 #include "softwareParmela.h"
    11 #include "softwareTransport.h"
    12 #include "softwareGenerator.h"
    13 #include "softwareGenerator.h"
    14 #include "softwareUsersprogram.h"
    15 #include "softwareTest.h"
    16 #include "softwareMadx.h" //xx
    17 #include "softwareUnknown.h" //xx
    1810
    1911#include "sectionToExecute.h"
     
    3527
    3628void sector::addElementAfter(abstractElement* currentElement ,abstractElement* previousElement){
     29// if the previous element is NULL, it will try to add at the beginning of the first section
     30 
    3731  if (previousElement == NULL) {
    3832    if (sectionToExecute_.size() == 0) {
    39       sectionToExecute_.push_back(new sectionToExecute(currentElement));
     33      sectionToExecute_.push_back(new sectionToExecute(currentElement,NULL));
    4034    } else {
    41       sectionToExecute_.insert ( sectionToExecute_.begin() , new sectionToExecute(currentElement) );
     35        sectionToExecute* section = sectionToExecute_.front();
     36      section->insertAtFirst(currentElement);
    4237    }
    4338  } else {
Note: See TracChangeset for help on using the changeset viewer.