Beispiel #1
0
    void writeObjectTag (std::string const& tag)
    {
#ifndef NDEBUG
        // Make sure we haven't already seen this tag.
        auto& tags = stack_.top ().tags;
        check (tags.find (tag) == tags.end (), "Already seen tag " + tag);
        tags.insert (tag);
#endif

        stringOutput (tag);
        output_ ({&colon, 1});
    }
Beispiel #2
0
WriterObject stringWriterObject (std::string& s)
{
    return WriterObject (stringOutput (s));
}
Beispiel #3
0
 static const std::string& bufferString(){ return stringOutput(); }