1 #ifndef INDENTATION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define INDENTATION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
4 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
9 #include "yaml-cpp/ostream.h"
15 Indentation(unsigned n_
): n(n_
) {}
19 inline ostream
& operator << (ostream
& out
, const Indentation
& indent
) {
20 for(unsigned i
=0;i
<indent
.n
;i
++)
26 IndentTo(unsigned n_
): n(n_
) {}
30 inline ostream
& operator << (ostream
& out
, const IndentTo
& indent
) {
31 while(out
.col() < indent
.n
)
38 #endif // INDENTATION_H_62B23520_7C8E_11DE_8A39_0800200C9A66