IMessageConsumer.h
Go to the documentation of this file.
1 #ifndef ilog_IMessageConsumer_included
2 #define ilog_IMessageConsumer_included
3 
4 
5 #include <istd/IPolymorphic.h>
7 #include <istd/TSmartPtr.h>
8 
9 
10 namespace ilog
11 {
12 
13 
19 class IMessageConsumer: virtual public istd::IPolymorphic
20 {
21 public:
23 
32  virtual bool IsMessageSupported(
33  int messageCategory = -1,
34  int messageId = -1,
35  const istd::IInformationProvider* messagePtr = NULL) const = 0;
39  virtual void AddMessage(const MessagePtr& messagePtr) = 0;
40 };
41 
42 
43 } // namespace ilog
44 
45 
46 #endif // !ilog_IMessageConsumer_included
47 
48 
virtual bool IsMessageSupported(int messageCategory=-1, int messageId=-1, const istd::IInformationProvider *messagePtr=NULL) const =0
Check if some messge is supported.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
Implementation of a smart pointer.
Definition: TSmartPtr.h:24
#define NULL
Definition: istd.h:64
Common interface for a message container consuming information objects (messages).
Common interface for class providing some basic information object.
virtual void AddMessage(const MessagePtr &messagePtr)=0
Adds a message item to the container.
istd::TSmartPtr< const istd::IInformationProvider > MessagePtr

© 2007-2017 Witold Gantzke and Kirill Lepskiy