Go to the documentation of this file.00001 #ifndef EMITTERUTILS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
00002 #define EMITTERUTILS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
00003
00004 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
00005 #pragma once
00006 #endif
00007
00008
00009 #include "yaml-cpp-pm/ostream.h"
00010 #include <string>
00011
00012 namespace YAML_PM
00013 {
00014 class Binary;
00015
00016 namespace Utils
00017 {
00018 bool WriteString(ostream& out, const std::string& str, bool inFlow, bool escapeNonAscii);
00019 bool WriteSingleQuotedString(ostream& out, const std::string& str);
00020 bool WriteDoubleQuotedString(ostream& out, const std::string& str, bool escapeNonAscii);
00021 bool WriteLiteralString(ostream& out, const std::string& str, int indent);
00022 bool WriteChar(ostream& out, char ch);
00023 bool WriteComment(ostream& out, const std::string& str, int postCommentIndent);
00024 bool WriteAlias(ostream& out, const std::string& str);
00025 bool WriteAnchor(ostream& out, const std::string& str);
00026 bool WriteTag(ostream& out, const std::string& str, bool verbatim);
00027 bool WriteTagWithPrefix(ostream& out, const std::string& prefix, const std::string& tag);
00028 bool WriteBinary(ostream& out, const Binary& binary);
00029 }
00030 }
00031
00032 #endif // EMITTERUTILS_H_62B23520_7C8E_11DE_8A39_0800200C9A66