X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FMEDFileData.hxx;h=b9683f8a5b76183baf638e456253293614709da6;hb=38069257608474b6c5541dc620d73686048c803f;hp=6a9e404124fa81d68fe7326f3a20709b8472cc92;hpb=10f37bf6f33a762626d7f1093b2f5450c1688667;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/MEDFileData.hxx b/src/MEDLoader/MEDFileData.hxx index 6a9e40412..b9683f8a5 100644 --- a/src/MEDLoader/MEDFileData.hxx +++ b/src/MEDLoader/MEDFileData.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D +// Copyright (C) 2007-2013 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 @@ -16,11 +16,13 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // +// Author : Anthony Geay (CEA/DEN) #ifndef __MEDFILEDATA_HXX__ #define __MEDFILEDATA_HXX__ #include "MEDCouplingAutoRefCountObjectPtr.hxx" +#include "MEDFileParameter.hxx" #include "MEDFileField.hxx" #include "MEDFileMesh.hxx" @@ -29,30 +31,37 @@ namespace ParaMEDMEM /*! * User class. */ - class MEDLOADER_EXPORT MEDFileData : public RefCountObject, public MEDFileWritable + class MEDFileData : public RefCountObject, public MEDFileWritable { public: - static MEDFileData *New(const char *fileName) throw(INTERP_KERNEL::Exception); - static MEDFileData *New(); - MEDFileFields *getFields() const; - MEDFileMeshes *getMeshes() const; - void setFields(MEDFileFields *fields) throw(INTERP_KERNEL::Exception); - void setMeshes(MEDFileMeshes *meshes) throw(INTERP_KERNEL::Exception); - int getNumberOfFields() const throw(INTERP_KERNEL::Exception); - int getNumberOfMeshes() const throw(INTERP_KERNEL::Exception); - std::string simpleRepr() const; + MEDLOADER_EXPORT static MEDFileData *New(const char *fileName); + MEDLOADER_EXPORT static MEDFileData *New(); + MEDLOADER_EXPORT MEDFileData *deepCpy() const; + MEDLOADER_EXPORT std::size_t getHeapMemorySizeWithoutChildren() const; + MEDLOADER_EXPORT std::vector getDirectChildren() const; + MEDLOADER_EXPORT MEDFileFields *getFields() const; + MEDLOADER_EXPORT MEDFileMeshes *getMeshes() const; + MEDLOADER_EXPORT MEDFileParameters *getParams() const; + MEDLOADER_EXPORT void setFields(MEDFileFields *fields); + MEDLOADER_EXPORT void setMeshes(MEDFileMeshes *meshes); + MEDLOADER_EXPORT void setParams(MEDFileParameters *params); + MEDLOADER_EXPORT int getNumberOfFields() const; + MEDLOADER_EXPORT int getNumberOfMeshes() const; + MEDLOADER_EXPORT int getNumberOfParams() const; + MEDLOADER_EXPORT std::string simpleRepr() const; // - bool changeMeshNames(const std::vector< std::pair >& modifTab) throw(INTERP_KERNEL::Exception); - bool changeMeshName(const char *oldMeshName, const char *newMeshName) throw(INTERP_KERNEL::Exception); - bool unPolyzeMeshes() throw(INTERP_KERNEL::Exception); + MEDLOADER_EXPORT bool changeMeshNames(const std::vector< std::pair >& modifTab); + MEDLOADER_EXPORT bool changeMeshName(const char *oldMeshName, const char *newMeshName); + MEDLOADER_EXPORT bool unPolyzeMeshes(); // - void write(const char *fileName, int mode) const throw(INTERP_KERNEL::Exception); + MEDLOADER_EXPORT void write(const char *fileName, int mode) const; private: MEDFileData(); - MEDFileData(const char *fileName) throw(INTERP_KERNEL::Exception); + MEDFileData(const char *fileName); private: MEDCouplingAutoRefCountObjectPtr _fields; MEDCouplingAutoRefCountObjectPtr _meshes; + MEDCouplingAutoRefCountObjectPtr _params; }; }