19#ifndef __XRD_CL_MESSAGE_HH__
20#define __XRD_CL_MESSAGE_HH__
36 Buffer( size ), pIsMarshalled( false ), pSessionId(0), pVirtReqID( 0 )
46 Buffer( std::move( msg ) ), pIsMarshalled( msg.pIsMarshalled ),
47 pSessionId( std::move( msg.pSessionId ) ), pVirtReqID( msg.pVirtReqID )
56 Steal( std::move( msg ) );
57 pIsMarshalled = msg.pIsMarshalled;
58 pSessionId = std::move( msg.pSessionId );
59 pVirtReqID = msg.pVirtReqID;
81 pIsMarshalled = isMarshalled;
89 pDescription = description;
105 pSessionId = sessionId;
121 pVirtReqID = virtReqID;
135 std::string pDescription;
Binary blob representation.
void Steal(Buffer &&buffer)
The message representation used throughout the system.
virtual ~Message()
Destructor.
void SetDescription(const std::string &description)
Set the description of the message.
void SetSessionId(uint64_t sessionId)
Set the session ID which this message is meant for.
void SetVirtReqID(uint16_t virtReqID)
Set virtual request ID for the message.
void SetIsMarshalled(bool isMarshalled)
Set the marshalling status.
bool IsMarshalled() const
Check if the message is marshalled.
const std::string & GetDescription() const
Get the description of the message.
uint16_t GetVirtReqID() const
Get virtual request ID for the message.
Message(Message &&msg)
Move Constructor.
Message & operator=(Message &&msg)
Move assignment operator.
Message(uint32_t size=0)
Constructor.
uint64_t GetSessionId() const
Get the session ID the message is meant for.