Ignore:
Timestamp:
Mar 11, 2014, 11:21:43 AM (10 years ago)
Author:
lemeur
Message:

refection generale des secteurs et applications de softwares (suite)

File:
1 edited

Legend:

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

    r485 r493  
    1010}
    1111
    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
     21abstractSoftware::abstractSoftware(string inputFileName, computingBlock* cmpb, dataManager* data)
    1322{
    1423  inputFileName_ = inputFileName;
    15   sectionToExecute_ = sect;
     24  compBlock_ = cmpb;
    1625  dataManager_ = data;
     26  cout << " abstractSoftware::abstractSoftware adresse manager " << dataManager_  << endl;
    1727  nameOfSoftware_ = new nomDeLogiciel("unknownSoftware");
    1828}
    1929
    2030
    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 //   //xx
    37 //   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 // }
    5531
    5632bool abstractSoftware::launchJob(string commandLine, string& resul)
Note: See TracChangeset for help on using the changeset viewer.