ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthRemoteExec
AthRemoteExecCore
AthRemoteExecCore
PayloadCodecBase.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef ATHREMOTEEXECCORE_REMOTEEXECPAYLOADCODECBASE_H
5
#define ATHREMOTEEXECCORE_REMOTEEXECPAYLOADCODECBASE_H
6
17
18
#include <
AthenaBaseComps/AthAlgTool.h
>
19
#include <Gaudi/Property.h>
20
21
#include <string>
22
#include <vector>
23
24
#include "
IPayloadCodec.h
"
25
26
namespace
AthRemoteExec
{
27
28
class
PayloadCodecBase
:
public
extends<AthAlgTool, IPayloadCodec> {
29
public
:
30
using
extends::extends;
31
32
virtual
StatusCode
initialize
()
override
;
33
34
virtual
const
std::string&
key
()
const
override final {
return
m_key
; }
35
virtual
const
std::string&
schema
()
const
override final {
return
m_schema
; }
36
37
virtual
StatusCode
decode
(
const
EventContext& ctx,
38
const
Payload
& payload)
const
override
final
;
39
virtual
StatusCode
encode
(
40
const
EventContext& ctx,
Payload
& payload,
41
const
std::vector<const IPayloadCodec*>& alsoCrossing,
42
std::vector<std::string>& dangling)
const
override
final
;
43
44
protected
:
46
bool
writingToSG
()
const
{
return
m_writing
; }
47
49
virtual
StatusCode
initializeBoundary
() {
return
StatusCode::SUCCESS; }
50
52
virtual
StatusCode
doDecode
(
const
EventContext& ctx,
IProxyDict
& store,
53
const
Payload
& payload)
const
= 0;
54
56
virtual
StatusCode
doEncode
(
57
const
EventContext& ctx,
IProxyDict
& store,
Payload
& payload,
58
const
std::vector<const IPayloadCodec*>& alsoCrossing,
59
std::vector<std::string>& dangling)
const
= 0;
60
61
private
:
62
Gaudi::Property<std::string>
m_key
{
this
,
"Key"
,
""
,
"see BoundaryInfo::key"
};
63
Gaudi::Property<std::string>
m_schema
{
this
,
"Schema"
,
""
,
64
"see BoundaryInfo::schema"
};
65
Gaudi::Property<std::string>
m_direction
{
66
this
,
"Direction"
,
""
,
67
"Direction in which this Codec operates: 'ReadFromSG' -> encoding, "
68
"'WriteFromSG' -> decoding"
};
69
71
IProxyDict
*
storeOf
(
const
EventContext& ctx)
const
;
72
73
bool
m_writing
=
false
;
74
};
75
76
}
// namespace AthRemoteExec
77
78
#endif
// ATHREMOTEEXECCORE_REMOTEEXECPAYLOADCODECBASE_H
AthAlgTool.h
IPayloadCodec.h
An AthAlgTool configured with the boundary (see BoundaryInfo) it serves.
AthRemoteExec::PayloadCodecBase
Definition
PayloadCodecBase.h:28
AthRemoteExec::PayloadCodecBase::encode
virtual StatusCode encode(const EventContext &ctx, Payload &payload, const std::vector< const IPayloadCodec * > &alsoCrossing, std::vector< std::string > &dangling) const override final
Definition
PayloadCodecBase.cxx:70
AthRemoteExec::PayloadCodecBase::m_key
Gaudi::Property< std::string > m_key
Definition
PayloadCodecBase.h:62
AthRemoteExec::PayloadCodecBase::key
virtual const std::string & key() const override final
Definition
PayloadCodecBase.h:34
AthRemoteExec::PayloadCodecBase::m_schema
Gaudi::Property< std::string > m_schema
Definition
PayloadCodecBase.h:63
AthRemoteExec::PayloadCodecBase::initializeBoundary
virtual StatusCode initializeBoundary()
Called from initialize().
Definition
PayloadCodecBase.h:49
AthRemoteExec::PayloadCodecBase::schema
virtual const std::string & schema() const override final
Definition
PayloadCodecBase.h:35
AthRemoteExec::PayloadCodecBase::writingToSG
bool writingToSG() const
Codec direction.
Definition
PayloadCodecBase.h:46
AthRemoteExec::PayloadCodecBase::doEncode
virtual StatusCode doEncode(const EventContext &ctx, IProxyDict &store, Payload &payload, const std::vector< const IPayloadCodec * > &alsoCrossing, std::vector< std::string > &dangling) const =0
Read input data (SG, RawEvent, etc.) and encode it into a payload.data.
AthRemoteExec::PayloadCodecBase::storeOf
IProxyDict * storeOf(const EventContext &ctx) const
The store belonging to ctx. Errors and returns null if there is none.
Definition
PayloadCodecBase.cxx:85
AthRemoteExec::PayloadCodecBase::m_writing
bool m_writing
Definition
PayloadCodecBase.h:73
AthRemoteExec::PayloadCodecBase::initialize
virtual StatusCode initialize() override
Definition
PayloadCodecBase.cxx:19
AthRemoteExec::PayloadCodecBase::decode
virtual StatusCode decode(const EventContext &ctx, const Payload &payload) const override final
Definition
PayloadCodecBase.cxx:47
AthRemoteExec::PayloadCodecBase::m_direction
Gaudi::Property< std::string > m_direction
Definition
PayloadCodecBase.h:65
AthRemoteExec::PayloadCodecBase::doDecode
virtual StatusCode doDecode(const EventContext &ctx, IProxyDict &store, const Payload &payload) const =0
Decode payload.data and record it onto a SG.
IProxyDict
A proxy dictionary.
Definition
AthenaKernel/AthenaKernel/IProxyDict.h:48
const
AthRemoteExec
Definition
CountWordsAlg.cxx:11
AthRemoteExec::Payload
The actual data that is sent via RPC.
Definition
Protocol.h:72
Generated on
for ATLAS Offline Software by
1.17.0