CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TBufferBlobStreamingService.h
Go to the documentation of this file.
1 #ifndef CondCore_DBCommon_TBufferBlobStreamer_h
2 #define CondCore_DBCommon_TBufferBlobStreamer_h
3 
5 //
6 #include <cstddef>
7 //
8 #include "CoralBase/Blob.h"
9 
11 
12 #include "TClass.h"
13 
14 namespace cond {
16  public:
18 
20  std::size_t m_arraySize;
21 
23  TClass *m_class;
24 
26  unsigned int m_primitive;
27  };
28 
30  public:
32 
34 
35  boost::shared_ptr<coral::Blob> write( const void* addressOfInputData, edm::TypeWithDict const & classDictionary, bool useCompression=false );
36 
37  void read( const coral::Blob& blobData, void* addressOfContainer, edm::TypeWithDict const & classDictionary );
38 
39  };
40 
41 }
42 
43 #endif // COND_TBUFFERBLOBSTREAMER_H
type
Definition: HCALResponse.h:21
TBufferBlobTypeInfo(const edm::TypeWithDict &type)
std::size_t m_arraySize
length of the plain C array (zero otherwise)
void read(const coral::Blob &blobData, void *addressOfContainer, edm::TypeWithDict const &classDictionary)
Reads an object from a Blob and fills-in the container.
TClass * m_class
The class as seen by the ROOT streaming services.
unsigned int m_primitive
the primitive C++ type if m_class is unset
boost::shared_ptr< coral::Blob > write(const void *addressOfInputData, edm::TypeWithDict const &classDictionary, bool useCompression=false)
Interface for a Streaming Service.