Interface for communication between MCC, Service and Plexer objects. More...
#include <MCC.h>
Public Member Functions | |
virtual MCC_Status | process (Message &request, Message &response)=0 |
Interface for communication between MCC, Service and Plexer objects.
The Interface consists of the method process() which is called by the previous MCC in the chain. For memory management policies please read the description of the Message class.
virtual MCC_Status Arc::MCCInterface::process | ( | Message & | request, | |
Message & | response | |||
) | [pure virtual] |
Method for processing of requests and responses. This method is called by preceeding MCC in chain when a request needs to be processed. This method must call similar method of next MCC in chain unless any failure happens. Result returned by call to next MCC should be processed and passed back to previous MCC. In case of failure this method is expected to generate valid error response and return it back to previous MCC without calling the next one.
request | The request that needs to be processed. | |
response | A Message object that will contain the response of the request when the method returns. |
Implemented in Arc::MCC, and Arc::Plexer.