|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include "TBufferFile.h"
18 ISvcLocator* pSvcLocator) : base_class(
name, pSvcLocator) {
31 TClass::GetClass(
"TMessageHandler");
33 return(StatusCode::SUCCESS);
48 TBufferFile writeBuffer(TBuffer::kWrite);
49 writeBuffer.WriteObjectAny(
object, cltype);
50 void*
buffer = writeBuffer.Buffer();
51 nbytes = writeBuffer.Length();
52 writeBuffer.ResetBit(TBuffer::kIsOwner); writeBuffer.SetBuffer(
nullptr);
70 obj =
new char[nbytes];
72 }
else if (cltype.
Name() ==
"Token") {
73 obj =
new char[nbytes];
74 std::memcpy(
obj,
buffer, nbytes);
static_cast<char*
>(
obj)[nbytes - 1] = 0;
76 TBufferFile readBuffer(TBuffer::kRead, nbytes,
buffer, kFALSE);
77 obj = readBuffer.ReadObjectAny(cltype);
78 nbytes = readBuffer.Length();
virtual void * deserialize(void *buffer, size_t &nbytes, const std::string &name) const override
virtual ~AthenaRootSerializeSvc()
Destructor.
static const TypeH forGuid(const Guid &info)
Access classes by Guid.
::StatusCode StatusCode
StatusCode definition for legacy code.
This file contains the class definition for the AthenaRootSerializeSvc class.
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
std::string Name(unsigned int mod=Reflex::SCOPED) const
AthenaRootSerializeSvc(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
Bool_t IsFundamental() const
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
virtual void * serialize(const void *object, const std::string &name, size_t &nbytes) const override