Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CondCore_CondDB_Binary_h
0002 #define CondCore_CondDB_Binary_h
0003 
0004 #include <string>
0005 #include <memory>
0006 // temporarely
0007 //
0008 
0009 namespace coral {
0010   class Blob;
0011 }
0012 
0013 namespace cond {
0014 
0015   class Binary {
0016   public:
0017     Binary();
0018 
0019     Binary(const void* data, size_t size);
0020 
0021     explicit Binary(const coral::Blob& data);
0022 
0023     Binary(const Binary& rhs);
0024 
0025     Binary& operator=(const Binary& rhs);
0026 
0027     const coral::Blob& get() const;
0028 
0029     void copy(const std::string& source);
0030 
0031     const void* data() const;
0032 
0033     void* data();
0034 
0035     size_t size() const;
0036 
0037   private:
0038     std::shared_ptr<coral::Blob> m_data;
0039   };
0040 
0041 }  // namespace cond
0042 
0043 #endif