Refactored the base64 binary to its own space with a unified class that (will) be used for parsing (in addition to emitting)

This commit is contained in:
Jesse Beder
2012-01-21 01:18:37 -06:00
parent e145488547
commit 6105d4cfeb
7 changed files with 148 additions and 49 deletions

View File

@@ -11,6 +11,8 @@
namespace YAML
{
class Binary;
namespace Utils
{
bool WriteString(ostream& out, const std::string& str, bool inFlow, bool escapeNonAscii);
@@ -23,7 +25,7 @@ namespace YAML
bool WriteAnchor(ostream& out, const std::string& str);
bool WriteTag(ostream& out, const std::string& str, bool verbatim);
bool WriteTagWithPrefix(ostream& out, const std::string& prefix, const std::string& tag);
bool WriteBinary(ostream& out, const unsigned char *data, std::size_t size);
bool WriteBinary(ostream& out, const Binary& binary);
}
}