X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHEXABLOCK%2FHexXmlTree.hxx;h=9c5809ce254b10490a2ccc30e17fa7865db1f65c;hb=b807e66955ae476b30f59bc29f1fe6c813837063;hp=a27a2f2cba93824269592af345bb6fa23573b13a;hpb=79915240d6a80781f71c39224a469ed6e38b81cb;p=modules%2Fhexablock.git diff --git a/src/HEXABLOCK/HexXmlTree.hxx b/src/HEXABLOCK/HexXmlTree.hxx old mode 100755 new mode 100644 index a27a2f2..9c5809c --- a/src/HEXABLOCK/HexXmlTree.hxx +++ b/src/HEXABLOCK/HexXmlTree.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2009-2016 CEA/DEN, EDF R&D +// Copyright (C) 2009-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -35,32 +35,32 @@ BEGIN_NAMESPACE_HEXA class HexaExport XmlTree { public : - XmlTree (const string& name, XmlTree* dad=NULL); + XmlTree (const std::string& name, XmlTree* dad=NULL); ~XmlTree (); - int parseFile (const string& name); + int parseFile (const std::string& name); int parseStream (cpchar flux, int& posit); cpchar getName () { return item_name.c_str() ; } int getNbrAttributs () { return nbr_attributs ; } int getNbrChildren () { return nbr_items ; } - int findAttribute (const string& nom); - const string& findValue (const string& nom); - int findInteger (const string& nom); + int findAttribute (const std::string& nom); + const std::string& findValue (const std::string& nom); + int findInteger (const std::string& nom); cpchar getAttribute (int nro) { return tab_attributs [nro].c_str(); } cpchar getValue (int nro) { return tab_values [nro].c_str(); } - XmlTree* findChild (const string& nom); + XmlTree* findChild (const std::string& nom); XmlTree* getChild (int nro) { return tab_items [nro]; } XmlTree* getParent () { return xml_parent; } // ------------------------- Modifications - XmlTree* addChild (const string& nom); - void addAttribut (const string& nom, const string& valeur); - void setName (const string& nom) { item_name = nom; } + XmlTree* addChild (const std::string& nom); + void addAttribut (const std::string& nom, const std::string& valeur); + void setName (const std::string& nom) { item_name = nom; } void dump (int niveau=0); int goTo (cpchar ouca); @@ -68,25 +68,25 @@ public : private : int parseXml (); int readLine (); - EnumItem readItem (string& item); - EnumItem getItem (string& item, EnumItem waited=M_NONE); - int getString (string& item); - int getIdent (string& item); + EnumItem readItem (std::string& item); + EnumItem getItem (std::string& item, EnumItem waited=M_NONE); + int getString (std::string& item); + int getIdent (std::string& item); int getChar (); void putError (cpchar why); private : - string item_name; - string item_vide; + std::string item_name; + std::string item_vide; int nbr_attributs; int nbr_items; XmlTree* xml_parent; - vector tab_attributs; - vector tab_values; - vector tab_items; + std::vector tab_attributs; + std::vector tab_values; + std::vector tab_items; // Lecture - string fic_buffer; + std::string fic_buffer; int len_buffer; int nro_ligne; int fic_pos;