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/elementMultipole.cc

    r431 r488  
    5151}
    5252
    53 string elementMultipole::FileOutputFlow() const
    54 {
    55   ostringstream sortie;
    56   sortie << elementName_.getGenericLabel() << endl;
    57   sortie  << specificName_ << endl;
    58   sortie << order_ << "  " << component_ <<endl;
    59   return sortie.str();
    60 }
     53// string elementMultipole::FileOutputFlow() const
     54// {
     55//   ostringstream sortie;
     56//   sortie << elementName_.getGenericLabel() << endl;
     57//   sortie  << specificName_ << endl;
     58//   sortie << order_ << "  " << component_ <<endl;
     59//   return sortie.str();
     60// }
    6161
    6262vector< pair<string, vector<string> > > elementMultipole::parametersToSoftware () const
     
    7272}
    7373
    74 void elementMultipole::FileInput(ifstream& ifs)
    75 {
    76   ifs >> specificName_;
    77   ifs >> order_ >> component_;
    78 }
     74// void elementMultipole::FileInput(ifstream& ifs)
     75// {
     76//   ifs >> specificName_;
     77//   ifs >> order_ >> component_;
     78// }
    7979
    8080string elementMultipole::print()
     
    9191void elementMultipole::InputRep(UAPNode* root)
    9292{
    93   UAPNode* ele = root->addChild("element");
    94   ele->addAttribute("name",specificName_);
     93  // UAPNode* ele = root->addChild("element");
     94  // ele->addAttribute("name",specificName_);
     95  UAPNode* ele = setAMLelementHeader(root);
    9596
    9697  string txt = "";
     
    103104  knl->addAttribute("design",txt);
    104105}
     106
     107void elementMultipole::FileAMLInput(UAPNode* entree)
     108{
     109  if ( !checkAMLelementGenericName(entree) ) return;
     110  UAPNode* multipNode = entree->getChildByName("multipole");
     111  if ( ! multipNode ) {
     112    cout << " elementMultipole::FileAMLInput ERREUR pas de noeud AML <multipole>  " << endl;
     113    return;
     114  }
     115  AMLtools::readAMLParameterAttribut(multipNode, "kl", "n", order_);
     116  AMLtools::readAMLParameterAttribut(multipNode, "kl", "design", component_);
     117}
Note: See TracChangeset for help on using the changeset viewer.