1 #ifndef OSTREAM_WRAPPER_H_62B23520_7C8E_11DE_8A39_0800200C9A66 2 #define OSTREAM_WRAPPER_H_62B23520_7C8E_11DE_8A39_0800200C9A66 4 #if defined(_MSC_VER) || \ 5 (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ 6 (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4 13 #include "yaml-cpp/dll.h" 22 void write(
const std::string& str);
23 void write(
const char* str, std::size_t size);
25 void set_comment() { m_comment =
true; }
27 const char* str()
const {
31 m_buffer[m_pos] =
'\0';
36 std::size_t row()
const {
return m_row; }
37 std::size_t col()
const {
return m_col; }
38 std::size_t pos()
const {
return m_pos; }
39 bool comment()
const {
return m_comment; }
42 void update_pos(
char ch);
45 mutable std::vector<char> m_buffer;
46 std::ostream*
const m_pStream;
49 std::size_t m_row, m_col;
53 template <std::
size_t N>
55 const char(&str)[N]) {
56 stream.write(str, N - 1);
61 const std::string& str) {
72 #endif // OSTREAM_WRAPPER_H_62B23520_7C8E_11DE_8A39_0800200C9A66 Definition: DrawableObjectLoader.h:10
Definition: ostream_wrapper.h:16