mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-04-06 02:45:02 +02:00
default \t indentation, All comments
This commit is contained in:
parent
dea6f8d9a6
commit
1e21e63853
@ -944,11 +944,17 @@ class StreamWriterBuilder {
|
|||||||
CommentStyle cs_;
|
CommentStyle cs_;
|
||||||
std::string indentation_;
|
std::string indentation_;
|
||||||
public:
|
public:
|
||||||
|
StreamWriterBuilder();
|
||||||
virtual ~StreamWriterBuilder();
|
virtual ~StreamWriterBuilder();
|
||||||
virtual void setCommentStyle(CommentStyle cs);
|
virtual void setCommentStyle(CommentStyle cs);
|
||||||
virtual void setIndentation(std::string indentation);
|
virtual void setIndentation(std::string indentation);
|
||||||
virtual StreamWriter* newStreamWriter(std::ostream* sout) const;
|
virtual StreamWriter* newStreamWriter(std::ostream* sout) const;
|
||||||
};
|
};
|
||||||
|
StreamWriterBuilder::StreamWriterBuilder()
|
||||||
|
: cs_(CommentStyle::All)
|
||||||
|
, indentation_("\t")
|
||||||
|
{
|
||||||
|
}
|
||||||
StreamWriterBuilder::~StreamWriterBuilder()
|
StreamWriterBuilder::~StreamWriterBuilder()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user