Lolly 1.4.27
Loading...
Searching...
No Matches
tm_ostream.hpp
Go to the documentation of this file.
1
2/******************************************************************************
3 * MODULE : tm_ostream.hpp
4 * DESCRIPTION: Output stream class
5 * COPYRIGHT : (C) 2009-2013 David MICHEL, Joris van der Hoeven
6 *******************************************************************************
7 * This software falls under the GNU general public license version 3 or later.
8 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
9 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
10 ******************************************************************************/
11
12#ifndef OUT_STREAM_HPP
13#define OUT_STREAM_HPP
14
15// #include "url.hpp"
16#include "string.hpp"
17#include <cstdio>
18class tm_ostream;
19
21public:
23
24public:
26 virtual ~tm_ostream_rep ();
27
28 virtual bool is_writable () const;
29 virtual void write (const char*);
30 virtual void flush ();
31 virtual void clear ();
32
33 friend class tm_ostream;
34};
35
37public:
39
40public:
45
46public:
47 tm_ostream ();
48 tm_ostream (char*);
50 tm_ostream (const tm_ostream&);
52 ~tm_ostream ();
56
57 void clear ();
58 void flush ();
59 void buffer ();
60 string unbuffer ();
61 void redirect (tm_ostream x);
62
65 tm_ostream& operator<< (short);
66 tm_ostream& operator<< (unsigned short);
68 tm_ostream& operator<< (unsigned int);
70 tm_ostream& operator<< (unsigned long);
71 tm_ostream& operator<< (long long int);
72 tm_ostream& operator<< (unsigned long long int);
73 tm_ostream& operator<< (float);
74 tm_ostream& operator<< (double);
75 tm_ostream& operator<< (long double);
76 tm_ostream& operator<< (const char*);
77};
78
79tm_ostream& operator<< (tm_ostream& out, string a);
80
81extern tm_ostream& cout;
82extern tm_ostream& cerr;
83
84#endif // defined OUT_STREAM_HPP
The list class represents a linked list.
Definition list.hpp:48
virtual ~tm_ostream_rep()
virtual void flush()
virtual void write(const char *)
virtual void clear()
virtual bool is_writable() const
string unbuffer()
tm_ostream & operator<<(bool)
tm_ostream_rep * operator->()
void buffer()
void redirect(tm_ostream x)
static tm_ostream private_cerr
bool operator==(tm_ostream &)
tm_ostream & operator=(tm_ostream x)
static tm_ostream & cout
static tm_ostream private_cout
tm_ostream_rep * rep
static tm_ostream & cerr
tm_ostream & cerr
tm_ostream & cout
tm_ostream & operator<<(tm_ostream &out, string a)