diff options
| author | Ted Ross <tross@apache.org> | 2011-02-03 02:46:01 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2011-02-03 02:46:01 +0000 |
| commit | 1f0908a0acb565c50c53bd9e1d6b3c2843df49ed (patch) | |
| tree | 47232418c07570437dabab9dc88c4bf1da4001ea /cpp/include | |
| parent | 03ae3e43a1343d0e7f0443cf1e406666febc3f95 (diff) | |
| download | qpid-python-1f0908a0acb565c50c53bd9e1d6b3c2843df49ed.tar.gz | |
Added severity and timestamp fields to raised events.
Enhanced the example agent to illustrate the raising of events.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1066726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include')
| -rw-r--r-- | cpp/include/qmf/AgentSession.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/include/qmf/AgentSession.h b/cpp/include/qmf/AgentSession.h index 23058c56c6..d6ac5adf83 100644 --- a/cpp/include/qmf/AgentSession.h +++ b/cpp/include/qmf/AgentSession.h @@ -165,8 +165,14 @@ namespace qmf { /** * Raise an event to be sent into the QMF network. + * + * @param data - A data object that contains the event contents. + * @param severity - Explicit severity (from qmf/SchemaTypes.h). If omitted, the severity is set to + * the default severity for the data's schema. If the data has no schema, the severity defaults + * to SEV_NOTICE. */ - QMF_EXTERN void raiseEvent(const Data&); + QMF_EXTERN void raiseEvent(const Data& data); + QMF_EXTERN void raiseEvent(const Data& data, int severity); #ifndef SWIG private: |
