source: XMLIO_V2/dev/trunk/trunk/src/XMLIO/stdout.cpp @ 76

Last change on this file since 76 was 76, checked in by ymipsl, 12 years ago

import xmlio version dev/trunk

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1#include <fstream>
2#include "xmlio_std.hpp"
3
4
5static const char file_stdout[]="xmlio.out" ;
6static const char file_stderr[]="xmlio.err" ;
7static const char file_stdlog[]="xmlio.log" ;
8
9
10// declaration of singleton for standard output
11
12xmlio_stdout xmlio_stdout::FirstInstance ;
13xmlio_stdout & StdOut=xmlio_stdout::GetInstance() ;
14
15xmlio_stdout::xmlio_stdout(void) : std::ofstream(file_stdout)
16{
17  (*this)<<ResetIndent ;
18}
19 
20xmlio_stdout & xmlio_stdout::GetInstance(void)
21{
22  return FirstInstance ;
23}
24
25// declaration of singleton for standard error
26
27xmlio_stderr xmlio_stderr::FirstInstance ;
28xmlio_stderr & StdErr=xmlio_stderr::GetInstance() ;
29
30xmlio_stderr::xmlio_stderr(void) : std::ofstream(file_stderr)
31{
32  (*this)<<ResetIndent ;
33}
34 
35xmlio_stderr & xmlio_stderr::GetInstance(void)
36{
37  return FirstInstance ;
38}
39 
40
41// declaration of singleton for standard error
42
43xmlio_stdlog xmlio_stdlog::FirstInstance ;
44xmlio_stdlog & StdLog=xmlio_stdlog::GetInstance() ;
45
46xmlio_stdlog::xmlio_stdlog(void) : std::ofstream(file_stdlog)
47{
48  (*this)<<ResetIndent ;
49}
50 
51xmlio_stdlog & xmlio_stdlog::GetInstance(void)
52{
53  return FirstInstance ;
54}
Note: See TracBrowser for help on using the repository browser.