ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthRemoteExec
AthRemoteExecCore
AthRemoteExecCore
IPayloadCodec.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_IPAYLOADCODEC_H
5
#define ATHREMOTEEXECCORE_IPAYLOADCODEC_H
6
17
18
#include <
AthRemoteExecWire/Protocol.h
>
19
20
#include <string>
21
#include <vector>
22
23
#include "GaudiKernel/EventContext.h"
24
#include "GaudiKernel/IAlgTool.h"
25
26
namespace
AthRemoteExec
{
27
28
class
IPayloadCodec
:
virtual
public
IAlgTool {
29
public
:
30
DeclareInterfaceID
(
IPayloadCodec
, 1, 0);
31
33
virtual
const
std::string&
encoding
()
const
= 0;
34
36
virtual
const
std::string&
key
()
const
= 0;
37
39
virtual
const
std::string&
schema
()
const
= 0;
40
42
virtual
StatusCode
decode
(
const
EventContext& ctx,
43
const
Payload
& payload)
const
= 0;
44
53
virtual
StatusCode
encode
(
54
const
EventContext& ctx,
Payload
& payload,
55
const
std::vector<const IPayloadCodec*>& alsoCrossing,
56
std::vector<std::string>& dangling)
const
= 0;
57
};
58
60
std::string
describeDangling
(
const
std::vector<std::string>& dangling);
61
62
}
// namespace AthRemoteExec
63
64
#endif
// ATHREMOTEEXECCORE_IPAYLOADCODEC_H
Protocol.h
Plain C++ interfaces of RPC wire.
AthRemoteExec::IPayloadCodec
Definition
IPayloadCodec.h:28
AthRemoteExec::IPayloadCodec::schema
virtual const std::string & schema() const =0
What the bytes are. May be empty.
AthRemoteExec::IPayloadCodec::encode
virtual StatusCode encode(const EventContext &ctx, Payload &payload, const std::vector< const IPayloadCodec * > &alsoCrossing, std::vector< std::string > &dangling) const =0
Encode payload from the event's store.
AthRemoteExec::IPayloadCodec::DeclareInterfaceID
DeclareInterfaceID(IPayloadCodec, 1, 0)
AthRemoteExec::IPayloadCodec::decode
virtual StatusCode decode(const EventContext &ctx, const Payload &payload) const =0
Decode payload into the event's store.
AthRemoteExec::IPayloadCodec::encoding
virtual const std::string & encoding() const =0
The RPC protocol this codec answers to. Fixed by the class.
AthRemoteExec::IPayloadCodec::key
virtual const std::string & key() const =0
The name of the boundary/SG key this instance serves.
AthRemoteExec
Definition
CountWordsAlg.cxx:11
AthRemoteExec::describeDangling
std::string describeDangling(const std::vector< std::string > &dangling)
Message that joins what's returned by dangling in IPayloadCodec::encode().
Definition
PayloadCodecBase.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