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
std::shared_ptr< coral::Blob > m_data
Definition: Binary.h:38
size_t size() const
Definition: Binary.cc:48
Binary & operator=(const Binary &rhs)
Definition: Binary.cc:23
void copy(const std::string &source)
Definition: Binary.cc:32
Definition: Binary.h:9
const void * data() const
Definition: Binary.cc:37
Definition: plugin.cc:23
static std::string const source
Definition: EdmProvDump.cc:49