// C++ : Ecriture en XML
-// Copyright (C) 2009-2016 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2019 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
int pext = strlen (nomfic) - 4;
if (pext > 0)
{
- string sext = &nomfic[pext];
+ std::string sext = &nomfic[pext];
set_minus (sext);
suff = sext != ".xml";
}
- string fname = nomfic;
+ std::string fname = nomfic;
if (suff)
fname += ".xml";
void XmlWriter::openMark (cpchar balise)
{
jumpLine ();
- string mot = "<";
+ std::string mot = "<";
mot += balise;
ecrire (mot);
// ========================================================= closeMark
void XmlWriter::closeMark (bool jump)
{
- string balise = pile_mark.top ();
- string mot = "</";
+ std::string balise = pile_mark.top ();
+ std::string mot = "</";
int etat = pile_etat.top ();
xml_level --;
xml_pos = xml_level * xml_decal;
if (xml_pos > 0)
{
- string space (xml_pos, ' ');
+ std::string space (xml_pos, ' ');
addMot (space.c_str());
}
}
// ========================================================= addAttribute
void XmlWriter::addAttribute (cpchar cle, cpchar valeur)
{
- string phrase = " ";
+ std::string phrase = " ";
phrase += cle;
phrase += " = \"";
phrase += valeur;