Ignore:
Timestamp:
Feb 7, 2014, 2:00:55 PM (10 years ago)
Author:
lemeur
Message:

lecture fichier sauvegarde AML

File:
1 edited

Legend:

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

    r424 r488  
    8181// }
    8282
    83 string elementFit::FileOutputFlow() const
    84 {
    85   ostringstream sortie;
    86   //    sortie << elementName_.getElementType() << endl;
    87   sortie << elementName_.getGenericLabel() << endl;
    88   sortie  << specificName_ << endl;
    89   sortie  <<    variableName_ << " " << variableValue_ << " " << tolerance_ << endl;
    90   return sortie.str();
    91 }
     83// string elementFit::FileOutputFlow() const
     84// {
     85//   ostringstream sortie;
     86//   //    sortie << elementName_.getElementType() << endl;
     87//   sortie << elementName_.getGenericLabel() << endl;
     88//   sortie  << specificName_ << endl;
     89//   sortie  <<    variableName_ << " " << variableValue_ << " " << tolerance_ << endl;
     90//   return sortie.str();
     91// }
    9292
    9393vector< pair<string, vector<string> > > elementFit::parametersToSoftware () const
     
    104104}
    105105
    106 void elementFit::FileInput(ifstream& ifs)
    107 {
    108   ifs >> specificName_;
    109   ifs  >>  variableName_ >>  variableValue_   >> tolerance_;
    110 }
     106// void elementFit::FileInput(ifstream& ifs)
     107// {
     108//   ifs >> specificName_;
     109//   ifs  >>  variableName_ >>  variableValue_   >> tolerance_;
     110// }
    111111
    112112string elementFit::print()
     
    119119void elementFit::InputRep(UAPNode* root)
    120120{
    121   UAPNode* ele = root->addChild("element");
    122   ele->addAttribute("name",specificName_);
     121  // UAPNode* ele = root->addChild("element");
     122  // ele->addAttribute("name",specificName_);
     123  UAPNode* ele = setAMLelementHeader(root);
    123124
    124125  UAPNode* node = ele->addChild("fit");
     
    130131  node->addAttribute("err",txt);
    131132}
     133
     134void elementFit::FileAMLInput(UAPNode* entree)
     135{
     136  if ( !checkAMLelementGenericName(entree) ) return;
     137  AMLtools::readAMLParameterAttribut(entree, "fit", "attribute", variableName_);
     138  AMLtools::readAMLParameterAttribut(entree, "fit", "design", variableValue_);
     139  AMLtools::readAMLParameterAttribut(entree, "fit", "err", tolerance_);
     140}
Note: See TracChangeset for help on using the changeset viewer.