Version: 9.15.0
HDFgroup.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2025 CEA, EDF, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 
23 // SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
24 // File : HDFgroup.hxx
25 // Module : SALOME
26 //
27 #ifndef HDFGROUP_HXX
28 #define HDFGROUP_HXX
29 
30 #include "HDFtypes.h"
31 #include "HDFcontainerObject.hxx"
32 #include "HDFexport.hxx"
33 
34 #include <vector>
35 #include <string>
36 
38 {
39  private :
43  char* _attribute;
44  public :
45  HDFgroup(const char *name, HDFcontainerObject *father);
46 
47  void CreateOnDisk();
48  void OpenOnDisk();
49  void CloseOnDisk();
50 
51  void FileMount(char *file,hdf_access_mode mode);
52  void FileUnMount();
53 
54  HDFcontainerObject *GetFather();
56 
57  int nInternalObjects();
58  void InternalObjectIndentify(int rank, char *object_name);
59  int ExistInternalObject(const char *object_name);
60  hdf_object_type InternalObjectType(char *object_name);
61  void GetAllObjects( std::vector< std::string > & object_names );
62 
63  int nAttributes();
64  char* GetAttributeName(unsigned idx);
65 };
66 
67 #endif /* HDFGROUP_HXX */
#define HDFPERSIST_EXPORT
Definition: HDFexport.hxx:34
hdf_access_mode
Definition: HDFtypes.h:52
hid_t hdf_idt
Definition: HDFtypes.h:41
hdf_object_type
Definition: HDFtypes.h:64
Definition: HDFcontainerObject.hxx:36
virtual void InternalObjectIndentify(int rank, char *object_name)
Definition: HDFcontainerObject.cc:55
virtual int nInternalObjects()
Definition: HDFcontainerObject.cc:50
Definition: HDFgroup.hxx:38
hdf_idt _mid
Definition: HDFgroup.hxx:42
char * _attribute
Definition: HDFgroup.hxx:43
HDFcontainerObject * _father
Definition: HDFgroup.hxx:40
hdf_idt _fid
Definition: HDFgroup.hxx:41
virtual hdf_object_type GetObjectType()
Definition: HDFobject.cc:59
string name
Definition: pythfilter.py:56