HydraExpress 4.7 |
HydraExpress C++ API Reference Guide |
Product Documentation:
Documentation Home |
Abstract base class for implementing Agent methods. More...
#include <rwsf/agent_methods/AgentMethodImp.h>
Public Member Functions | |
AgentMethodImp () | |
virtual void | init (const rwsf::Config &config, const rwsf::AgentContext &manager)=0 |
virtual void | invoke ()=0 |
Related Functions | |
(Note that these are not member functions.) | |
#define | RWSF_DEFINE_METHOD(NAME) |
Additional Inherited Members | |
Protected Member Functions inherited from rwsf::BodyBase | |
BodyBase (void) | |
BodyBase (const BodyBase &second) | |
virtual | ~BodyBase (void) |
BodyBase & | operator= (const BodyBase &second) |
Class rwsf::AgentMethodImp is the abstract base class for implementing Agent methods, such as rwsf::MessageInfo handlers.
rwsf::AgentMethodImp::AgentMethodImp | ( | ) |
Default constructor.
|
pure virtual |
Initializes the method with configuration options specified in the configuration file rwagent.xml
, located in the <installdir>\conf
directory.
|
pure virtual |
Defines the main functionality of the AgentMethod. Anyone extending from this class must implement the invoke() method to define the method's behavior.
|
related |
Defines a function that returns an AgentMethod
of type NAME
. The macro names the function by prefacing NAME
with the word "create". The Agent uses the function to construct an instance of AgentMethod. For example to use the newly defined method you would need to do the following:
Add the following to the implementation file of your newly defined AgentMethod.
Add the following element as a child of either the <rwsf:preStartup>
, <rwsf:postStartup>
, <rwsf:preShutdown>
, or <rwsf:postShutdown>
element, in the rwagent.xml
configuration file.
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.