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/include/abstractElement.h

    r469 r488  
    1010
    1111#include "UAP/UAPNode.hpp"
     12#include "AMLtools.h"
     13
    1214using namespace std;
    1315
     
    3436  void setDefaultValues();
    3537  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
    3760 public :
    3861 
     
    5679  virtual void setParametersString(string* param) = 0;
    5780  virtual string* getParametersString() const = 0;
    58   virtual string FileOutputFlow() const = 0;
     81  //  virtual string FileOutputFlow() const = 0;
    5982  virtual vector< pair<string, vector<string> > > parametersToSoftware () const =0;
    60   virtual void FileInput(ifstream& ifs) = 0;
     83  //  virtual void FileInput(ifstream& ifs) = 0;
    6184  virtual string print() = 0;
    6285  virtual void InputRep(UAPNode* root) = 0;
     86  virtual void FileAMLInput(UAPNode* entree) = 0;
    6387   
    6488};
Note: See TracChangeset for help on using the changeset viewer.