15 #ifndef __IdComponent_H
16 #define __IdComponent_H
31 void incRefCount(
const hid_t obj_id)
const;
32 void incRefCount()
const;
35 void decRefCount(
const hid_t obj_id)
const;
36 void decRefCount()
const;
39 int getCounter(
const hid_t obj_id)
const;
40 int getCounter()
const;
43 static H5I_type_t getHDFObjType(
const hid_t obj_id);
46 H5I_type_t getHDFObjType()
const;
49 static hsize_t getNumMembers(H5I_type_t type);
52 static bool isValid(hid_t an_id);
55 static bool typeExists(H5I_type_t type);
61 void setId(
const hid_t new_id);
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS
66 virtual hid_t getId ()
const = 0;
70 virtual void close() = 0;
74 H5std_string inMemFunc(
const char* func_name)
const;
77 virtual H5std_string fromClass()
const {
return(
"IdComponent");}
79 #endif // DOXYGEN_SHOULD_SKIP_THIS
84 #ifndef DOXYGEN_SHOULD_SKIP_THIS
91 H5std_string p_get_file_name()
const;
94 static bool p_valid_id(
const hid_t obj_id);
98 virtual void p_setId(
const hid_t new_id) = 0;
101 static bool H5dontAtexit_called;
106 static bool H5cppinit;
108 #endif // DOXYGEN_SHOULD_SKIP_THIS
113 #endif // __IdComponent_H
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:32
Definition: H5Exception.h:172
void incRefCount() const
Increment reference counter for the id of this object.
Definition: H5IdComponent.cpp:53
static bool typeExists(H5I_type_t type)
Queries if a given type is currently registered with the library.
Definition: H5IdComponent.cpp:239
IdComponent & operator=(const IdComponent &rhs)
Assignment operator.
Definition: H5IdComponent.cpp:269
Definition: H5Exception.h:95
void decRefCount() const
Decrement reference counter for the id of this object.
Definition: H5IdComponent.cpp:85
int getCounter() const
Returns the reference counter for the id of this object.
Definition: H5IdComponent.cpp:114
virtual ~IdComponent()
Noop destructor.
Definition: H5IdComponent.cpp:321
static void initH5cpp(void)
Initializes C++ library and registers terminating functions at exit. Only for the library functions,...
Definition: H5Library.cpp:171
H5std_string getDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:256
Class IdComponent provides wrappers of the C functions that operate on an HDF5 identifier.
Definition: H5IdComponent.h:27
void setId(const hid_t new_id)
Sets the identifier of this object to a new value.
Definition: H5IdComponent.cpp:307
Definition: H5AbstractDs.cpp:34
static bool isValid(hid_t an_id)
Checks if the given ID is valid.
Definition: H5IdComponent.cpp:205
H5I_type_t getHDFObjType() const
Returns the type of the object. It is an overloaded function of the above function.
Definition: H5IdComponent.cpp:159
static hsize_t getNumMembers(H5I_type_t type)
Returns the number of members of the given type.
Definition: H5IdComponent.cpp:186
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
and the Board of Trustees of the University of Illinois
|