Changeset 469 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/sector.cc
- Timestamp:
- Dec 19, 2013, 3:53:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/sector.cc
r455 r469 8 8 9 9 #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" //xx17 #include "softwareUnknown.h" //xx18 10 19 11 #include "sectionToExecute.h" … … 35 27 36 28 void 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 37 31 if (previousElement == NULL) { 38 32 if (sectionToExecute_.size() == 0) { 39 sectionToExecute_.push_back(new sectionToExecute(currentElement ));33 sectionToExecute_.push_back(new sectionToExecute(currentElement,NULL)); 40 34 } else { 41 sectionToExecute_.insert ( sectionToExecute_.begin() , new sectionToExecute(currentElement) ); 35 sectionToExecute* section = sectionToExecute_.front(); 36 section->insertAtFirst(currentElement); 42 37 } 43 38 } else {
Note: See TracChangeset
for help on using the changeset viewer.