Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress C++ API Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::MessageInfoHandlerChain

Group:  Message Handling


rwsf::MessageInfoHandlerChainrwsf::HandleBase

Local Index

Members

Header File

#include rwsf/handlers/MessageInfoHandlerChain.h

Description

Class MessageInfoHandlerChain represents a functor for invoking a series of handlers.

Each handler is registered along with a type, indicating when the handler should be executed (on input, output or fault). When the chain is executed, each input handler is invoked and each output or fault handler is placed on a stack to be executed. After all of the handlers have been processed, the stack is executed in reverse, invoking each out handler. If a fault is indicated (by invoke from one of the handlers returning false), the chain will be interrupted, and each out and fault handler in the stack will be executed.

Public Constructors

MessageInfoHandlerChain();

Public Member Functions

void
addHandler(const rwsf::MessageInfoHandler & handler);
void
addHandlerChain(const rwsf::MessageInfoHandlerChain & chain,
    int typeFilter = -1);
std::string
getName() const;
void
init(const rwsf::Config & config);
bool
invoke(rwsf::MessageInfo & message);

Protected Member Functions

const rwsf::MessageInfoHandlerChainImp &
body() const;
rwsf::MessageInfoHandlerChainImp &
body();


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.