1 #ifndef CondCore_CondDB_Serialization_h
2 #define CondCore_CondDB_Serialization_h
23 #include <boost/shared_ptr.hpp>
32 if( userTypeName != payloadTypeName )
49 void write(
const std::type_info& sourceType,
const void* sourceInstance);
56 write(
typeid(
T), &instance );
71 void read(
const std::type_info& destinationType,
void* destinationInstance);
79 read(
typeid(
T), &instance );
92 std::ostringstream buffer;
96 ret.
copy( buffer.str() );
107 boost::shared_ptr<T> payload;
108 if( !unpackingOnly ){
110 sbuf.pubsetbuf( static_cast<char*>(const_cast<void*>(payloadData.
data())), payloadData.
size() );
112 std::istream buffer( &sbuf );
114 payload.reset( createPayload<T>(payloadType) );
boost::shared_ptr< void > makeShared() const
static PFTauRenderPlugin instance
std::string demangledName(const std::type_info &typeInfo)
void write(const std::type_info &sourceType, const void *sourceInstance)
T * createPayload(const std::string &payloadTypeName)
void copy(const std::string &source)
ora::Object oraObject() const
RootOutputArchive(std::ostream &destination)
const void * data() const
RootOutputArchive & operator<<(const T &instance)
void throwException(std::string const &message, std::string const &methodName)
boost::shared_ptr< T > deserialize(const std::string &payloadType, const Binary &payloadData, bool unpackingOnly=false)
Binary serialize(const T &payload, bool packingOnly=false)
RootInputArchive CondInputArchive
RootOutputArchive CondOutputArchive
static std::string const source