CMS 3D CMS Logo

Binary.h
Go to the documentation of this file.
1 #ifndef CondCore_CondDB_Binary_h
2 #define CondCore_CondDB_Binary_h
3 
4 #include <string>
5 #include <memory>
6 // temporarely
7 //
8 
9 namespace coral {
10  class Blob;
11 }
12 
13 namespace cond {
14 
15  class Binary {
16  public:
17  Binary();
18 
19  Binary(const void* data, size_t size);
20 
21  explicit Binary(const coral::Blob& data);
22 
23  Binary(const Binary& rhs);
24 
25  Binary& operator=(const Binary& rhs);
26 
27  const coral::Blob& get() const;
28 
29  void copy(const std::string& source);
30 
31  const void* data() const;
32 
33  void* data();
34 
35  size_t size() const;
36 
37  private:
38  std::shared_ptr<coral::Blob> m_data;
39  };
40 
41 } // namespace cond
42 
43 #endif
cond::Binary
Definition: Binary.h:15
cond::Binary::data
const void * data() const
Definition: Binary.cc:37
cond::Binary::copy
void copy(const std::string &source)
Definition: Binary.cc:32
cond::Binary::size
size_t size() const
Definition: Binary.cc:48
coral
Definition: Binary.h:9
source
static const std::string source
Definition: EdmProvDump.cc:47
cond::Binary::operator=
Binary & operator=(const Binary &rhs)
Definition: Binary.cc:23
cond::Binary::get
const coral::Blob & get() const
Definition: Binary.cc:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cond
Definition: plugin.cc:23
cond::Binary::m_data
std::shared_ptr< coral::Blob > m_data
Definition: Binary.h:38
cond::Binary::Binary
Binary()
Definition: Binary.cc:11