test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 #include <boost/shared_ptr.hpp>
8 //
9 
10 namespace coral {
11  class Blob;
12 }
13 
14 namespace cond {
15 
16  class Binary {
17  public:
18  Binary();
19 
20  Binary( const void* data, size_t size );
21 
22  explicit Binary( const coral::Blob& data );
23 
24  Binary( const Binary& rhs );
25 
26  Binary& operator=( const Binary& rhs );
27 
28  const coral::Blob& get() const;
29 
30  void copy( const std::string& source );
31 
32  const void* data() const;
33 
34  void* data();
35 
36  size_t size() const;
37 
38  private:
39  std::shared_ptr<coral::Blob> m_data;
40  };
41 
42 }
43 
44 #endif
45 
size_t size() const
Definition: Binary.cc:54
std::shared_ptr< coral::Blob > m_data
Definition: Binary.h:39
Binary & operator=(const Binary &rhs)
Definition: Binary.cc:29
void copy(const std::string &source)
Definition: Binary.cc:40
const void * data() const
Definition: Binary.cc:45
static std::string const source
Definition: EdmProvDump.cc:43