Changeset 493 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/abstractSoftware.cc
- Timestamp:
- Mar 11, 2014, 11:21:43 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/abstractSoftware.cc
r485 r493 10 10 } 11 11 12 abstractSoftware::abstractSoftware(string inputFileName, sectionToExecute* sect, dataManager* data) 12 // abstractSoftware::abstractSoftware(string inputFileName, sectionToExecute* sect, dataManager* data) 13 // { 14 // inputFileName_ = inputFileName; 15 // // sectionToExecute_ = sect; 16 // compBlock_ = NULL; 17 // dataManager_ = data; 18 // nameOfSoftware_ = new nomDeLogiciel("unknownSoftware"); 19 // } 20 21 abstractSoftware::abstractSoftware(string inputFileName, computingBlock* cmpb, dataManager* data) 13 22 { 14 23 inputFileName_ = inputFileName; 15 sectionToExecute_ = sect;24 compBlock_ = cmpb; 16 25 dataManager_ = data; 26 cout << " abstractSoftware::abstractSoftware adresse manager " << dataManager_ << endl; 17 27 nameOfSoftware_ = new nomDeLogiciel("unknownSoftware"); 18 28 } 19 29 20 30 21 // void abstractSoftware::registerElement(nomdElements::typedElement nomdel,trivaluedBool b)22 // {23 // // std::cout << " abstractSoftware::registerElement soft : " << nameOfSoftware_.getString() << std::endl;24 // if (b == TBoolIgnore) {25 // // std::cout << " abstractSoftware::registerElement j'enregistre element " << nomdel << " ignore " << std::endl;26 // ignoredElements_.push_back(nomdel);27 // } else if (b == TBoolOk) {28 // // std::cout << " abstractSoftware::registerElement j'enregistre element " << nomdel << " OK " << std::endl;29 // acceptedElements_.push_back(nomdel);30 // }31 // }32 33 // trivaluedBool abstractSoftware::doAcceptElement(nomdElements::typedElement typdel)34 // {35 36 // //xx37 // if (acceptedElements_.size() == 0 && nameOfSoftware_ != nomDeLogiciel::unknownSoftware) {38 // return TBoolError;39 // }40 41 // if (std::find(acceptedElements_.begin(),acceptedElements_.end(),typdel) != acceptedElements_.end()) {42 // return TBoolOk;43 // }44 45 // if (ignoredElements_.size() == 0) {46 // return TBoolError;47 // }48 49 // if (std::find(ignoredElements_.begin(),ignoredElements_.end(),typdel) != ignoredElements_.end()) {50 // return TBoolIgnore;51 // }52 53 // return TBoolOk;54 // }55 31 56 32 bool abstractSoftware::launchJob(string commandLine, string& resul)
Note: See TracChangeset
for help on using the changeset viewer.