Salome HOME
Initial merge of branch 'BR_HYDRO_IMPS_2016' into BR_PORTING_OCCT_7
[modules/hydro.git] / src / HYDROData / HYDROData_SinusX.h
index 0d8e9e15803792a3df16015d06f978d8934a8efe..03899572d0bb9013bb3c9aa58608f11191918020 100644 (file)
@@ -1,8 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
+// Copyright (C) 2014-2015  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
 #include <HYDROData.h>
 #include <NCollection_Sequence.hxx>
 #include <QString>
+#include <QStringList>
 
 class QFile;
 class gp_XYZ;
-//class QString;
-class Handle_HYDROData_Entity;
-class Handle_HYDROData_Document;
+class HYDROData_Entity;
+class HYDROData_Document;
 
 struct HYDROGUI_CurveBlock
 {
@@ -55,13 +51,20 @@ class HYDRODATA_EXPORT HYDROData_SinusX
 public:
   HYDROData_SinusX( );
   virtual ~HYDROData_SinusX();
-  bool Import (const QString& theFilePath, Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+  bool Import (const QString& theFilePath, Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities);
+  bool Export(const QString& theFilePath, const NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities);
+  
 private:
-  void SXToHydro(Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+  void SXToHydro(Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities);
   bool Parse( QFile& theFile );
+  void CollectExistingNames(Handle(HYDROData_Document) theDocument);
+  QString GetName(const QString& theName);
+  void HydroToSX( QFile& theFile, const NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities);
+
 private:
 
   std::vector<HYDROGUI_CurveBlock> myCurveBlocks;
+  QStringList myExistingNames;
 };
 
 #endif