ICF 3.1.1.10
Technical documentation of ICF Libraries
IMessageConsumer.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef ilog_IMessageConsumer_included
7#define ilog_IMessageConsumer_included
8
9
10// ICF includes
11#include <istd/IPolymorphic.h>
13
14
15namespace ilog
16{
17
18
23class IMessageConsumer: virtual public istd::IPolymorphic
24{
25public:
26 typedef std::shared_ptr<const istd::IInformationProvider> MessagePtr;
27
35 virtual bool IsMessageSupported(
36 int messageCategory = -1,
37 int messageId = -1,
38 const QByteArray* senderIdPtr = nullptr) const = 0;
42 virtual void AddMessage(const MessagePtr& messagePtr) = 0;
43};
44
45
46} // namespace ilog
47
48
49#endif // !ilog_IMessageConsumer_included
50
51
Common interface for a message container consuming information objects (messages).
virtual bool IsMessageSupported(int messageCategory=-1, int messageId=-1, const QByteArray *senderIdPtr=nullptr) const =0
Check if some messge is supported.
virtual void AddMessage(const MessagePtr &messagePtr)=0
Adds a message item to the container.
std::shared_ptr< const istd::IInformationProvider > MessagePtr
This namespace contains implementations for the logging functionality.

© Witold Gantzke and Kirill Lepskiy