#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;
HYDROData_SinusX( );
virtual ~HYDROData_SinusX();
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);
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