X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_SinusX.h;h=b2f6a8e6881b57a8fa18dfc195240afcf06e3ddf;hb=f9d37ee66fa46871478d806faa54de237225d3c6;hp=0d8e9e15803792a3df16015d06f978d8934a8efe;hpb=a2ce1a12f9a6ce4ff9965ea60147ed8d90ffb797;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_SinusX.h b/src/HYDROData/HYDROData_SinusX.h index 0d8e9e15..b2f6a8e6 100644 --- a/src/HYDROData/HYDROData_SinusX.h +++ b/src/HYDROData/HYDROData_SinusX.h @@ -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 @@ -27,10 +23,10 @@ #include #include #include +#include class QFile; class gp_XYZ; -//class QString; class Handle_HYDROData_Entity; class Handle_HYDROData_Document; @@ -56,12 +52,19 @@ public: HYDROData_SinusX( ); virtual ~HYDROData_SinusX(); bool Import (const QString& theFilePath, Handle(HYDROData_Document) theDocument, NCollection_Sequence& theEntities); + bool Export(const QString& theFilePath, const NCollection_Sequence& theEntities); + private: void SXToHydro(Handle(HYDROData_Document) theDocument, NCollection_Sequence& theEntities); bool Parse( QFile& theFile ); + void CollectExistingNames(Handle_HYDROData_Document theDocument); + QString GetName(const QString& theName); + void HydroToSX( QFile& theFile, const NCollection_Sequence& theEntities); + private: std::vector myCurveBlocks; + QStringList myExistingNames; }; #endif