Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:30

0001 #ifndef CondCore_CondHDF5ESSource_h5_Attribute_h
0002 #define CondCore_CondHDF5ESSource_h5_Attribute_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     CondCore/CondHDF5ESSource
0006 // Class  :     Attribute
0007 //
0008 /**\class Attribute Attribute.h "Attribute.h"
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Christopher Jones
0018 //         Created:  Fri, 30 Jun 2023 14:37:32 GMT
0019 //
0020 
0021 // system include files
0022 #include <string>
0023 #include "hdf5.h"
0024 
0025 // user include files
0026 
0027 // forward declarations
0028 
0029 namespace cms::h5 {
0030 
0031   class Attribute {
0032   public:
0033     Attribute(hid_t, std::string const&);
0034     ~Attribute();
0035 
0036     Attribute(const Attribute&) = delete;             // stop default
0037     Attribute& operator=(const Attribute&) = delete;  // stop default
0038     Attribute(Attribute&&) = delete;                  // stop default
0039     Attribute& operator=(Attribute&&) = delete;       // stop default
0040 
0041     // ---------- const member functions ---------------------
0042     std::string readString() const;
0043     uint32_t readUInt32() const;
0044 
0045     // ---------- static member functions --------------------
0046 
0047     // ---------- member functions ---------------------------
0048 
0049   private:
0050     // ---------- member data --------------------------------
0051     hid_t id_;
0052   };
0053 }  // namespace cms::h5
0054 #endif