CMS 3D CMS Logo

h5_Attribute.h
Go to the documentation of this file.
1 #ifndef CondCore_CondHDF5ESSource_h5_Attribute_h
2 #define CondCore_CondHDF5ESSource_h5_Attribute_h
3 // -*- C++ -*-
4 //
5 // Package: CondCore/CondHDF5ESSource
6 // Class : Attribute
7 //
16 //
17 // Original Author: Christopher Jones
18 // Created: Fri, 30 Jun 2023 14:37:32 GMT
19 //
20 
21 // system include files
22 #include <string>
23 #include "hdf5.h"
24 
25 // user include files
26 
27 // forward declarations
28 
29 namespace cms::h5 {
30 
31  class Attribute {
32  public:
33  Attribute(hid_t, std::string const&);
34  ~Attribute();
35 
36  Attribute(const Attribute&) = delete; // stop default
37  Attribute& operator=(const Attribute&) = delete; // stop default
38  Attribute(Attribute&&) = delete; // stop default
39  Attribute& operator=(Attribute&&) = delete; // stop default
40 
41  // ---------- const member functions ---------------------
42  std::string readString() const;
43  uint32_t readUInt32() const;
44 
45  // ---------- static member functions --------------------
46 
47  // ---------- member functions ---------------------------
48 
49  private:
50  // ---------- member data --------------------------------
51  hid_t id_;
52  };
53 } // namespace cms::h5
54 #endif
std::string readString() const
Definition: h5_Attribute.cc:64
Attribute & operator=(const Attribute &)=delete
uint32_t readUInt32() const
Definition: h5_Attribute.cc:86
Attribute(hid_t, std::string const &)
Definition: h5_Attribute.cc:31