]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/runtime/VisitorSaveSalomeSchema.cxx
Salome HOME
[EDF29576] : management of -x option
[modules/yacs.git] / src / runtime / VisitorSaveSalomeSchema.cxx
index a863a7ebb68c1b6bd30e3d41538a79fa2926b117..b15638ce4470087893dbb16807fabb2833f080b2 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2006-2013  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2024  CEA, EDF
 //
 // 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
@@ -177,3 +177,11 @@ void VisitorSaveSalomeSchema::writeStudyOutNodeParameters(DataNode *node)
       _out << inp->getData() << "\"/>" << endl;
     }
 }
+
+void YACS::ENGINE::VisitorSaveSalomeSchemaUnsafe(ComposedNode* proc, const std::string& xmlSchema)
+{
+  VisitorSaveSalomeSchema vss(proc);
+  vss.openFileSchema(xmlSchema);
+  proc->accept(&vss);
+  vss.closeFileSchema();
+}