From 1f0908a0acb565c50c53bd9e1d6b3c2843df49ed Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 3 Feb 2011 02:46:01 +0000 Subject: 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 --- cpp/include/qmf/AgentSession.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cpp/include') 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: -- cgit v1.2.1