|
fson
1.0.2
A comment-preserving C++ library for FSON — a human-friendly superset of JSON / JSON5
|
#include <Comment.hh>
Collaboration diagram for fedem::fson::Comment:Public Types | |
| enum class | Kind { SingleLine , MultiLine } |
Public Member Functions | |
| Comment (Kind kind, std::string text) | |
| Kind | getKind () const noexcept |
| std::string const & | getText () const noexcept |
| void | setText (std::string text) |
Private Attributes | |
| Kind | kind |
| std::string | text |
|
strong |
|
inline |
|
inlinenoexcept |
References kind.
Referenced by fedem::fson::FsonWriter::writeComment(), and fedem::fson::FsonWriter::writeTrailingComment().
Here is the caller graph for this function:
|
inlinenoexcept |
References text.
Referenced by fedem::fson::FsonWriter::writeComment(), and fedem::fson::FsonWriter::writeTrailingComment().
Here is the caller graph for this function:
|
inline |
References text.