added option to FastWriter which omits the trailing new line character

This commit is contained in:
Don Milham
2014-09-02 17:09:07 -06:00
parent 3515db184a
commit 5bf16105b5
2 changed files with 8 additions and 2 deletions

View File

@@ -54,6 +54,8 @@ public:
*/
void dropNullPlaceholders();
void omitEndingLineFeed();
public: // overridden from Writer
virtual std::string write(const Value &root);
@@ -63,6 +65,7 @@ private:
std::string document_;
bool yamlCompatiblityEnabled_;
bool dropNullPlaceholders_;
bool omitEndingLineFeed_;
};
/** \brief Writes a Value in <a HREF="http://www.json.org">JSON</a> format in a