1 #ifndef OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
4 #if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
19 void reserve(unsigned size
);
21 const char *str() const { return m_buffer
; }
23 unsigned row() const { return m_row
; }
24 unsigned col() const { return m_col
; }
25 unsigned pos() const { return m_pos
; }
32 unsigned m_row
, m_col
;
35 ostream
& operator << (ostream
& out
, const char *str
);
36 ostream
& operator << (ostream
& out
, const std::string
& str
);
37 ostream
& operator << (ostream
& out
, char ch
);
40 #endif // OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66