14 #ifndef H5IdComponent_H
15 #define H5IdComponent_H
29 void incRefCount(
const hid_t obj_id)
const;
30 void incRefCount()
const;
33 void decRefCount(
const hid_t obj_id)
const;
34 void decRefCount()
const;
37 int getCounter(
const hid_t obj_id)
const;
38 int getCounter()
const;
41 static H5I_type_t getHDFObjType(
const hid_t obj_id);
44 H5I_type_t getHDFObjType()
const;
47 static hsize_t getNumMembers(H5I_type_t type);
50 static bool isValid(hid_t an_id);
53 static bool typeExists(H5I_type_t type);
59 void setId(
const hid_t new_id);
61 #ifndef DOXYGEN_SHOULD_SKIP_THIS
64 virtual hid_t getId()
const = 0;
68 virtual void close() = 0;
72 H5std_string inMemFunc(
const char *func_name)
const;
78 return (
"IdComponent");
81 #endif // DOXYGEN_SHOULD_SKIP_THIS
86 #ifndef DOXYGEN_SHOULD_SKIP_THIS
93 H5std_string p_get_file_name()
const;
96 static bool p_valid_id(
const hid_t obj_id);
100 virtual void p_setId(
const hid_t new_id) = 0;
103 static bool H5dontAtexit_called;
108 static bool H5cppinit;
110 #endif // DOXYGEN_SHOULD_SKIP_THIS
115 #endif // H5IdComponent_H
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:27
Definition: H5Exception.h:165
void incRefCount() const
Increment reference counter for the id of this object.
Definition: H5IdComponent.cpp:54
static bool typeExists(H5I_type_t type)
Queries if a given type is currently registered with the library.
Definition: H5IdComponent.cpp:246
IdComponent & operator=(const IdComponent &rhs)
Assignment operator.
Definition: H5IdComponent.cpp:277
Definition: H5Exception.h:88
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:116
virtual ~IdComponent()
Noop destructor.
Definition: H5IdComponent.cpp:329
static void initH5cpp(void)
Initializes C++ library and registers terminating functions at exit. Only for the library functions,...
Definition: H5Library.cpp:172
H5std_string getDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:264
Class IdComponent provides wrappers of the C functions that operate on an HDF5 identifier.
Definition: H5IdComponent.h:26
void setId(const hid_t new_id)
Sets the identifier of this object to a new value.
Definition: H5IdComponent.cpp:315
Definition: H5AbstractDs.cpp:33
static bool isValid(hid_t an_id)
Checks if the given ID is valid.
Definition: H5IdComponent.cpp:211
H5I_type_t getHDFObjType() const
Returns the type of the object. It is an overloaded function of the above function.
Definition: H5IdComponent.cpp:163
static hsize_t getNumMembers(H5I_type_t type)
Returns the number of members of the given type.
Definition: H5IdComponent.cpp:191
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
|