mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-14 18:07:56 +08:00
clarify CommentStyle
This commit is contained in:
parent
fe3979cd8a
commit
648843d148
@ -41,7 +41,11 @@ class JSON_API StreamWriter {
|
|||||||
protected:
|
protected:
|
||||||
std::ostream& sout_; // not owned; will not delete
|
std::ostream& sout_; // not owned; will not delete
|
||||||
public:
|
public:
|
||||||
enum class CommentStyle {None, Some, All};
|
/// `All`: Keep all comments.
|
||||||
|
/// `None`: Drop all comments.
|
||||||
|
/// Use `Most` to recover the odd behavior of previous versions.
|
||||||
|
/// Only `All` is currently implemented.
|
||||||
|
enum class CommentStyle {None, Most, All};
|
||||||
|
|
||||||
/// Keep a reference, but do not take ownership of `sout`.
|
/// Keep a reference, but do not take ownership of `sout`.
|
||||||
StreamWriter(std::ostream* sout);
|
StreamWriter(std::ostream* sout);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user