Changeset 488 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/include/abstractElement.h
- Timestamp:
- Feb 7, 2014, 2:00:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/abstractElement.h
r469 r488 10 10 11 11 #include "UAP/UAPNode.hpp" 12 #include "AMLtools.h" 13 12 14 using namespace std; 13 15 … … 34 36 void setDefaultValues(); 35 37 void setDefaults(); 36 38 39 40 inline UAPNode* setAMLelementHeader(UAPNode* elementNode) { 41 UAPNode* ele = elementNode->addChild("element"); 42 ele->addAttribute("name",specificName_); 43 UAPNode* node = ele->addChild("description"); 44 node->addAttribute("type",elementName_.getGenericLabel()); 45 return ele; 46 } 47 48 inline bool checkAMLelementGenericName(UAPNode* entree) { 49 if ( !entree ) return false; 50 string nonGenerique; 51 AMLtools::readAMLParameterAttribut(entree, "description", "type", nonGenerique); 52 if ( nonGenerique != elementName_.getGenericLabel() ) { 53 cout << " abstractElement::checkAMLelementGenericName ERREUR d'element : " << nonGenerique << " ? attendu : " << elementName_.getGenericLabel() << endl; 54 return false; 55 } 56 specificName_ = entree->getAttribute("name")->getValue(); 57 return true; 58 } 59 37 60 public : 38 61 … … 56 79 virtual void setParametersString(string* param) = 0; 57 80 virtual string* getParametersString() const = 0; 58 virtual string FileOutputFlow() const = 0;81 // virtual string FileOutputFlow() const = 0; 59 82 virtual vector< pair<string, vector<string> > > parametersToSoftware () const =0; 60 virtual void FileInput(ifstream& ifs) = 0;83 // virtual void FileInput(ifstream& ifs) = 0; 61 84 virtual string print() = 0; 62 85 virtual void InputRep(UAPNode* root) = 0; 86 virtual void FileAMLInput(UAPNode* entree) = 0; 63 87 64 88 };
Note: See TracChangeset
for help on using the changeset viewer.