Replaced direct emitter writing with an accessor to a C-string

This commit is contained in:
Jesse Beder
2009-05-22 22:21:01 +00:00
parent 69ef85526a
commit b51a32ae14
4 changed files with 11 additions and 16 deletions

View File

@@ -15,8 +15,9 @@ namespace YAML
Emitter();
~Emitter();
bool WriteToStream(std::ostream& out) const;
bool WriteToFile(const std::string& fileName) const;
// output
const char *c_str() const;
unsigned size() const;
// state checking
bool good() const;