ATLAS Offline Software
Loading...
Searching...
No Matches
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
19
20#include <string>
21#include <vector>
22
23#include "GaudiKernel/EventContext.h"
24#include "GaudiKernel/IAlgTool.h"
25
26namespace AthRemoteExec {
27
28class IPayloadCodec : virtual public IAlgTool {
29 public:
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
60std::string describeDangling(const std::vector<std::string>& dangling);
61
62} // namespace AthRemoteExec
63
64#endif // ATHREMOTEEXECCORE_IPAYLOADCODEC_H
Plain C++ interfaces of RPC wire.
virtual const std::string & schema() const =0
What the bytes are. May be empty.
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.
DeclareInterfaceID(IPayloadCodec, 1, 0)
virtual StatusCode decode(const EventContext &ctx, const Payload &payload) const =0
Decode payload into the event's store.
virtual const std::string & encoding() const =0
The RPC protocol this codec answers to. Fixed by the class.
virtual const std::string & key() const =0
The name of the boundary/SG key this instance serves.
std::string describeDangling(const std::vector< std::string > &dangling)
Message that joins what's returned by dangling in IPayloadCodec::encode().
The actual data that is sent via RPC.
Definition Protocol.h:72