|
fson
1.0.2
A comment-preserving C++ library for FSON — a human-friendly superset of JSON / JSON5
|
#include <String.hh>
Inheritance diagram for fedem::fson::String:
Collaboration diagram for fedem::fson::String:Public Types | |
| enum class | Form { Quoted , Multiline } |
Public Types inherited from fedem::fson::Value | |
| enum class | Type { Null , Boolean , Number , String , Array , Object } |
Public Member Functions | |
| String (std::string value=std::string(), Form form=Form::Quoted) | |
| Type | getType () const noexcept override |
| std::unique_ptr< Value > | clone () const override |
| String * | asString () noexcept override |
| String const * | asString () const noexcept override |
| std::string const & | getValue () const noexcept |
| void | setValue (std::string value) |
| Form | getForm () const noexcept |
| void | setForm (Form form) noexcept |
Public Member Functions inherited from fedem::fson::Value | |
| virtual | ~Value () |
| bool | isNull () const noexcept |
| bool | isBoolean () const noexcept |
| bool | isNumber () const noexcept |
| bool | isString () const noexcept |
| bool | isArray () const noexcept |
| bool | isObject () const noexcept |
| virtual Null * | asNull () noexcept |
| virtual Null const * | asNull () const noexcept |
| virtual Boolean * | asBoolean () noexcept |
| virtual Boolean const * | asBoolean () const noexcept |
| virtual Number * | asNumber () noexcept |
| virtual Number const * | asNumber () const noexcept |
| virtual Array * | asArray () noexcept |
| virtual Array const * | asArray () const noexcept |
| virtual Object * | asObject () noexcept |
| virtual Object const * | asObject () const noexcept |
Private Attributes | |
| std::string | value |
| Form | form |
Additional Inherited Members | |
Protected Member Functions inherited from fedem::fson::Value | |
| Value ()=default | |
|
strong |
|
inlineexplicit |
|
inlineoverridevirtualnoexcept |
Implements fedem::fson::Value.
References fedem::fson::Value::String.
|
inlineoverridevirtual |
Implements fedem::fson::Value.
|
inlineoverridevirtualnoexcept |
Reimplemented from fedem::fson::Value.
|
inlineoverridevirtualnoexcept |
Reimplemented from fedem::fson::Value.
|
inlinenoexcept |
References value.
Referenced by fedem::fson::Object::getString().
Here is the caller graph for this function:
|
inline |
References value.
|
inlinenoexcept |
References form.
Referenced by fedem::fson::FsonParser::parseArrayBody(), and fedem::fson::FsonParser::parseObjectBody().
Here is the caller graph for this function:
|
private |
Referenced by clone(), getValue(), and setValue().