libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CRNMessenger.h
Go to the documentation of this file.
1 /* Copyright 2009 INSA Lyon
2  *
3  * This file is part of libcrn.
4  *
5  * libcrn is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * libcrn is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with libcrn. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * file: CRNMessenger.h
19  * \author Yann LEYDIER
20  */
21 
22 #ifndef CRNMessenger_HEADER
23 #define CRNMessenger_HEADER
24 
25 #include <CRNString.h>
26 
27 namespace crn
28 {
37  class Messenger
38  {
39  public:
41  Messenger() = default;
43  virtual ~Messenger() = default;
45  virtual void PrintDebug(const String &msg) = 0;
47  virtual void PrintVerbose(const String &msg) = 0;
49  virtual void PrintWarning(const String &msg) = 0;
51  virtual void PrintError(const String &msg) = 0;
52 
54  private:
56  Messenger(const Messenger &);
58  Messenger& operator=(const Messenger &);
59 
60  };
62 }
63 
64 #endif
65 
66 
Base class for an object that prints messages.
Definition: CRNMessenger.h:37
String WarningPrefix
Definition: CRNMessenger.h:53
A UTF32 character string class.
Definition: CRNString.h:61
virtual void PrintVerbose(const String &msg)=0
Prints a message.
virtual void PrintError(const String &msg)=0
Prints an error message.
Messenger()=default
Empty constructor.
virtual void PrintDebug(const String &msg)=0
Prints a debug message.
String DebugPrefix
Definition: CRNMessenger.h:53
String ErrorPrefix
Definition: CRNMessenger.h:53
String VerbosePrefix
Definition: CRNMessenger.h:53
CRN_ALIAS_SMART_PTR(ImageBW)
virtual void PrintWarning(const String &msg)=0
Prints a warning message.
virtual ~Messenger()=default
Empty virtual destructor.