common: win32utils - compile fix
[supercollider.git] / external_libraries / yaml-cpp-0.2.6 / include / yaml-cpp / ostream.h
blob90258ba9d8e4c5873df4c871db4b56c635183d2d
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
5 #pragma once
6 #endif
9 #include <string>
11 namespace YAML
13 class ostream
15 public:
16 ostream();
17 ~ostream();
19 void reserve(unsigned size);
20 void put(char ch);
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; }
27 private:
28 char *m_buffer;
29 unsigned m_pos;
30 unsigned m_size;
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