Apama
10.2.0.3
|
Derive from this class to define a Correlator EPL plug-in. More...
#include <epl_plugin.hpp>
Public Types | |
typedef EPLPlugin | base_plugin_t |
Convenience typedef for the base type. More... | |
typedef MethodData< DERIVED > | method_data_t |
Convenience typedef for the method data type. More... | |
Public Member Functions | |
EPLPlugin (const std::string &name) | |
Construct an EPL plug-in with a name (for logging) More... | |
Static Public Member Functions | |
static CorrelatorInterface & | getCorrelator () |
Return a reference to the correlator host interface. More... | |
Public Attributes | |
Logger | logger |
A Logger object which can be used to log to the correlator log file. More... | |
Derive from this class to define a Correlator EPL plug-in.
When you inherit from EPLPlugin you must template it over the derived class. Eg:
Your class must implement zero-args constructor
Your class must provide a static initialization method of this form:
This method must export each of the methods which are to be visible to EPL using the MethodData<DERIVED>::registerMethod() function on method_data_t. Eg:
This class provides the following members to its derived classes:
To export a class for use in the correlator you must use the following macro:
typedef EPLPlugin com::apama::epl::EPLPlugin< DERIVED >::base_plugin_t |
Convenience typedef for the base type.
typedef MethodData<DERIVED> com::apama::epl::EPLPlugin< DERIVED >::method_data_t |
Convenience typedef for the method data type.
|
inline |
Construct an EPL plug-in with a name (for logging)
name | The name of the plug-in |
|
inlinestatic |
Return a reference to the correlator host interface.
Logger com::apama::epl::EPLPlugin< DERIVED >::logger |
A Logger object which can be used to log to the correlator log file.
All log lines include the plug-in name specified in the EPLPlugin constructor.