#include <Response.h>

Inheritance diagram for Mgr::Response:
Collaboration diagram for Mgr::Response:

Public Types

typedef RefCount< ResponsePointer
 

Public Member Functions

 Response (Ipc::RequestId, Action::Pointer anAction=nullptr)
 sender's constructor More...
 
 Response (const Ipc::TypedMsgHdr &msg)
 from recvmsg() More...
 
virtual void pack (Ipc::TypedMsgHdr &msg) const
 prepare for sendmsg() More...
 
virtual Ipc::Response::Pointer clone () const
 returns a copy of this More...
 
bool hasAction () const
 whether response contain action object More...
 
const ActiongetAction () const
 returns action object More...
 
QuestionerId intendedRecepient () const
 for Mine() tests More...
 

Public Attributes

Action::Pointer action
 action relating to response More...
 
RequestId requestId
 the ID of the request we are responding to More...
 

Detailed Description

A response to Mgr::Request. May carry strand action data to be aggregated with data from other strands.

Definition at line 23 of file Response.h.

Member Typedef Documentation

◆ Pointer

Definition at line 26 of file Response.h.

Constructor & Destructor Documentation

◆ Response() [1/2]

Mgr::Response::Response ( Ipc::RequestId  aRequestId,
Action::Pointer  anAction = nullptr 
)

Definition at line 21 of file Response.cc.

References action, and Must.

◆ Response() [2/2]

Member Function Documentation

◆ clone()

Ipc::Response::Pointer Mgr::Response::clone ( ) const
virtual

Implements Ipc::Response.

Definition at line 55 of file Response.cc.

◆ getAction()

const Mgr::Action & Mgr::Response::getAction ( ) const

Definition at line 67 of file Response.cc.

References action(), and Must.

Referenced by Mgr::Inquirer::aggregate().

◆ hasAction()

bool Mgr::Response::hasAction ( ) const

Definition at line 61 of file Response.cc.

References action(), and NULL.

Referenced by Mgr::Inquirer::aggregate().

◆ intendedRecepient()

QuestionerId Ipc::Response::intendedRecepient ( ) const
inlineinherited

Definition at line 33 of file Response.h.

References Ipc::RequestId::questioner(), and Ipc::Response::requestId.

◆ pack()

Member Data Documentation

◆ action

Action::Pointer Mgr::Response::action

Definition at line 39 of file Response.h.

Referenced by Response().

◆ requestId

RequestId Ipc::Response::requestId
inherited

The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors