Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
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_ */
elm::io::Monitor::setErr
void setErr(OutStream &err)
Definition: io_Monitor.cpp:99
elm::io::Monitor::setOut
void setOut(OutStream &out)
Definition: io_Monitor.cpp:91
elm::io::Monitor::Monitor
Monitor(void)
Definition: io_Monitor.cpp:41
elm::io::Monitor::~Monitor
virtual ~Monitor(void)
Definition: io_Monitor.cpp:56
elm::io::Monitor::err
Output err
Definition: Monitor.h:40
elm::io::Monitor
Definition: Monitor.h:29
elm::io::Monitor::error
virtual void error(const string &message)
Definition: io_Monitor.cpp:73
elm::io::Monitor::info
virtual void info(const string &message)
Definition: io_Monitor.cpp:64
elm::monitor
io::Monitor monitor
Definition: io_Monitor.cpp:113
elm::io::Monitor::log
Output log
Definition: Monitor.h:41
elm::io::Monitor::setLog
void setLog(OutStream &log)
Definition: io_Monitor.cpp:107
elm
Definition: adapter.h:26
elm::io::Monitor::out
Output out
Definition: Monitor.h:39
elm::io::OutStream
Definition: OutStream.h:30
elm::io::Monitor::warn
virtual void warn(const string &message)
Definition: io_Monitor.cpp:82
elm::io::Output
Definition: Output.h:179