Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Monitor.h
1 /*
2  * elm::Monitor class interface
3  * OutFileStream class interface
4  *
5  * This file is part of OTAWA
6  * Copyright (c) 2011, IRIT UPS.
7  *
8  * OTAWA is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * OTAWA is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with OTAWA; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 #ifndef ELM_IO_MONITOR_H_
23 #define ELM_IO_MONITOR_H_
24 
25 #include <elm/io.h>
26 
27 namespace elm { namespace io {
28 
29 class Monitor {
30 public:
31  Monitor(void);
32  Monitor(const Monitor& monitor);
33  virtual ~Monitor(void);
34 
35  virtual void info(const string& message);
36  virtual void error(const string& message);
37  virtual void warn(const string& message);
38 
42 
43  void setOut(OutStream& out);
44  void setErr(OutStream& err);
45  void setLog(OutStream& log);
46 };
47 
48 } // io
49 
50 extern io::Monitor monitor;
51 
52 } // elm
53 
54 
55 #endif /* MONITOR_H_ */
Monitor(void)
Definition: io_Monitor.cpp:40
io::Monitor monitor
Definition: io_Monitor.cpp:112
virtual ~Monitor(void)
Definition: io_Monitor.cpp:55
virtual void error(const string &message)
Definition: io_Monitor.cpp:72
Definition: Output.h:161
Definition: OutStream.h:30
virtual void warn(const string &message)
Definition: io_Monitor.cpp:81
void setErr(OutStream &err)
Definition: io_Monitor.cpp:98
virtual void info(const string &message)
Definition: io_Monitor.cpp:63
Output err
Definition: Monitor.h:40
Output log
Definition: Monitor.h:41
Output out
Definition: Monitor.h:39
void setOut(OutStream &out)
Definition: io_Monitor.cpp:90
void setLog(OutStream &log)
Definition: io_Monitor.cpp:106
Definition: Monitor.h:29