Changeset 488 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/elementMultipole.cc
- Timestamp:
- Feb 7, 2014, 2:00:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/elementMultipole.cc
r431 r488 51 51 } 52 52 53 string elementMultipole::FileOutputFlow() const54 {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 // } 61 61 62 62 vector< pair<string, vector<string> > > elementMultipole::parametersToSoftware () const … … 72 72 } 73 73 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 // } 79 79 80 80 string elementMultipole::print() … … 91 91 void elementMultipole::InputRep(UAPNode* root) 92 92 { 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); 95 96 96 97 string txt = ""; … … 103 104 knl->addAttribute("design",txt); 104 105 } 106 107 void 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.