ATLAS Offline Software
Loading...
Searching...
No Matches
AthenaRootSerializeSvc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ATHENAROOTSERIALIZESVC_H
6#define ATHENAROOTSERIALIZESVC_H
7
12
15
19class AthenaRootSerializeSvc : public extends<AthService, IAthenaSerializeSvc> {
20 // Allow the factory class access to the constructor
22
23public:
25 AthenaRootSerializeSvc(const std::string& name, ISvcLocator* pSvcLocator);
28
30 virtual StatusCode initialize() override;
31
32 virtual void* serialize(const void* object, const std::string& name, size_t& nbytes) const override;
33 virtual void* serialize(const void* object, const Guid& id, size_t& nbytes) const override;
34 virtual void* serialize(const void* object, const RootType& cltype, size_t& nbytes) const override;
35
36 virtual void* deserialize(void* buffer, size_t& nbytes, const std::string& name) const override;
37 virtual void* deserialize(void* buffer, size_t& nbytes, const Guid& id) const override;
38 virtual void* deserialize(void* buffer, size_t& nbytes, const RootType& cltype) const override;
39};
40
41#endif
TTypeAdapter RootType
Definition RootType.h:211
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
AthenaRootSerializeSvc(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
virtual ~AthenaRootSerializeSvc()
Destructor.
virtual void * serialize(const void *object, const std::string &name, size_t &nbytes) const override
virtual void * deserialize(void *buffer, size_t &nbytes, const std::string &name) const override
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition Guid.h:25