Salome HOME
Merge branch V7_3_1_BR
[modules/hexablock.git] / src / HEXABLOCK / HexXmlWriter.hxx
index f75bc5aab5f48adf57bf134e4ace843015c33094..6f12ffc85f1481b281d1834ca26416ca33255d7f 100755 (executable)
@@ -1,9 +1,9 @@
-// Copyright (C) 2009-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2009-2014  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
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 BEGIN_NAMESPACE_HEXA
 
-class XmlWriter 
+class HexaExport XmlWriter 
 {
 public :
    XmlWriter ();
   ~XmlWriter ()    { closeXml () ; }
 
-   int    openXml  (string& nom)     { return openXml (nom.c_str()); }
-   int    openXml  (cpchar nom=NULL);
+   int    setFileName (cpchar filename);  // Un seul xml par fichier
+   int    setFile     (pfile  afile);     // Plusieurs xml par fichier
+   int    setStream   ();                 // Sauvegarde par flux
+   int    startXml ();
    void   closeXml ();
    cpchar getXml   ()                { return xml_buffer.c_str();    }
 
@@ -57,7 +59,9 @@ private :
     void addMot   (cpchar  mot);
 
 private :
+    enum  {InaFile, InaStudy, InaStream} xml_mode;
     enum  {xml_decal=3, xml_size=80};
+
     pfile  xml_file;
     int    xml_level;
     int    xml_pos;