Changeset 418 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/elementSnapshot.cc
- Timestamp:
- Jun 21, 2013, 10:16:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/elementSnapshot.cc
r387 r418 13 13 nbParam_ = elementName_.getElementNbParameters(); 14 14 parametersString_ = new string[nbParam_+1]; 15 registerAcceptableSoftware(nomDeLogiciel::transport, TBoolIgnore); 16 registerAcceptableSoftware(nomDeLogiciel::parmela, TBoolIgnore); 17 registerAcceptableSoftware(nomDeLogiciel::generator, TBoolIgnore); 18 registerAcceptableSoftware(nomDeLogiciel::test, TBoolIgnore); 15 // registerAcceptableSoftware(nomDeLogiciel::transport, TBoolIgnore); 16 // registerAcceptableSoftware(nomDeLogiciel::parmela, TBoolIgnore); 17 // registerAcceptableSoftware(nomDeLogiciel::generator, TBoolIgnore); 18 // registerAcceptableSoftware(nomDeLogiciel::useraction, 19 // TBoolOk); 20 // registerAcceptableSoftware(nomDeLogiciel::test, TBoolIgnore); 19 21 } 20 22 21 23 void elementSnapshot::setDefaultValues() 22 24 { 23 default Label_ = "snapshot";25 defaultSpecificName_ = "snapshot"; 24 26 } 25 27 26 28 void elementSnapshot::setDefaults() 27 29 { 28 label_ = defaultLabel_;30 specificName_ = defaultSpecificName_; 29 31 30 32 if(incr_ < 10) { … … 41 43 int compteur = -1; 42 44 parametersString_[++compteur] = mixedTools::intToString(nbParam_); 43 parametersString_[++compteur] = label_;45 parametersString_[++compteur] = specificName_; 44 46 parametersString_[++compteur] = snapshotFile_; 45 47 … … 66 68 } 67 69 68 label_ = param[++compteur];70 specificName_ = param[++compteur]; 69 71 } 70 72 71 string elementSnapshot::parmelaOutputFlow() const72 {73 // ostringstream sortie;74 // return sortie.str();75 return string("");76 }73 // string elementSnapshot::parmelaOutputFlow() const 74 // { 75 // // ostringstream sortie; 76 // // return sortie.str(); 77 // return string(""); 78 // } 77 79 78 string elementSnapshot::transportOutputFlow() const79 {80 return string("");81 }80 // string elementSnapshot::transportOutputFlow() const 81 // { 82 // return string(""); 83 // } 82 84 83 85 string elementSnapshot::FileOutputFlow() const 84 86 { 85 87 ostringstream sortie; 86 sortie << elementName_.get ElementLabel() << endl;87 sortie << label_ << endl;88 sortie << elementName_.getGenericLabel() << endl; 89 sortie << specificName_ << endl; 88 90 sortie << snapshotFile_ << endl; 89 91 return sortie.str(); 90 92 } 91 93 94 vector< pair<string, vector<string> > > elementSnapshot::parametersToSoftware () const { 95 vector< pair<string, vector<string> > > sortie; 96 sortie.push_back( pair<string, vector<string> >("labelsGenericSpecific", vector<string>() ) ); 97 sortie.back().second.push_back(elementName_.getGenericLabel()); 98 sortie.back().second.push_back(specificName_); 99 sortie.push_back( pair<string, vector<string> >("snapshotFile", vector<string>() ) ); 100 sortie.back().second.push_back(snapshotFile_); 101 return sortie; 102 } 103 92 104 void elementSnapshot::FileInput(ifstream& ifs) 93 105 { 94 ifs >> label_;106 ifs >> specificName_; 95 107 ifs >> snapshotFile_; 96 108 } … … 99 111 { 100 112 string txt = ""; 101 txt += label_;113 txt += specificName_; 102 114 txt += "\nname of file for snapshot : "; 103 115 txt += snapshotFile_;
Note: See TracChangeset
for help on using the changeset viewer.