|
CToon C++ 0.9.0
A C++ TOON/JSON serialization library
|
#include <ctoon.hpp>
Public Member Functions | |
| document () CTOON_NOEXCEPT | |
| document (ctoon_doc *doc) CTOON_NOEXCEPT | |
| ~document () | |
| document (document &&o) CTOON_NOEXCEPT | |
| document & | operator= (document &&o) CTOON_NOEXCEPT |
| unsigned char | valid () const CTOON_NOEXCEPT |
| operator unsigned char () const CTOON_NOEXCEPT | |
| value | root () const CTOON_NOEXCEPT |
| value | operator* () const CTOON_NOEXCEPT |
| ctoon_doc * | raw () const CTOON_NOEXCEPT |
| std::size_t | read_size () const CTOON_NOEXCEPT |
| std::size_t | val_count () const CTOON_NOEXCEPT |
| value | get_pointer (const string_view &ptr) const CTOON_NOEXCEPT |
| write_result | to_string (const write_options &opts=write_options()) const |
| void | write_file (const char *path, const write_options &opts=write_options()) const |
| write_result | to_json (int indent=2, write_flag flags=write_flag::NOFLAG) const |
| void | to_json_file (const char *path, int indent=2, write_flag flags=write_flag::NOFLAG) const |
| mut_document | mut_copy () const |
| ctoon_doc * | release () CTOON_NOEXCEPT |
Static Public Member Functions | |
| static document | parse (const char *toon, std::size_t len, read_flag flags=read_flag::NOFLAG) |
| static document | parse (const char *toon, read_flag flags=read_flag::NOFLAG) |
| static document | parse (const std::string &toon, read_flag flags=read_flag::NOFLAG) |
| static document | parse (const string_view &toon, read_flag flags=read_flag::NOFLAG) |
| static document | parse_indent (const char *toon, std::size_t len, int indent_size, read_flag flags=read_flag::NOFLAG) |
| static document | parse_indent (const std::string &toon, int indent_size, read_flag flags=read_flag::NOFLAG) |
| static document | parse_indent (const string_view &toon, int indent_size, read_flag flags=read_flag::NOFLAG) |
| static document | parse_file (const char *path, read_flag flags=read_flag::NOFLAG) |
| static document | from_json (const char *json, std::size_t len, read_flag flags=read_flag::NOFLAG) |
| static document | from_json (const char *json, read_flag flags=read_flag::NOFLAG) |
| static document | from_json (const std::string &json, read_flag flags=read_flag::NOFLAG) |
| static document | from_json (const string_view &json, read_flag flags=read_flag::NOFLAG) |
| static document | from_json_file (const char *path, read_flag flags=read_flag::NOFLAG) |
Public Attributes | |
| ctoon_doc * | doc_ |
|
inline |
Definition at line 588 of file ctoon.hpp.
Referenced by from_json(), from_json_file(), parse(), parse_file(), and parse_indent().
|
inlineexplicit |
|
inlinestatic |
Definition at line 648 of file ctoon.hpp.
References from_json().
|
inlinestatic |
Definition at line 641 of file ctoon.hpp.
References document(), and ctoon::to_c().
Referenced by from_json(), ctoon::from_json(), ctoon::from_json(), from_json(), ctoon::from_json(), and from_json().
|
inlinestatic |
Definition at line 651 of file ctoon.hpp.
References from_json().
|
inlinestatic |
Definition at line 654 of file ctoon.hpp.
References from_json().
|
inlinestatic |
Definition at line 657 of file ctoon.hpp.
References document(), and ctoon::to_c().
Referenced by ctoon::from_json_file().
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
Definition at line 599 of file ctoon.hpp.
References document(), and ctoon::to_c().
Referenced by parse(), ctoon::parse(), parse(), ctoon::parse(), and parse().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 633 of file ctoon.hpp.
References document(), and ctoon::to_c().
Referenced by ctoon::parse_file().
|
inlinestatic |
Definition at line 617 of file ctoon.hpp.
References document(), and ctoon::to_c().
Referenced by parse_indent(), and parse_indent().
|
inlinestatic |
Definition at line 625 of file ctoon.hpp.
References parse_indent().
|
inlinestatic |
Definition at line 629 of file ctoon.hpp.
References parse_indent().
|
inline |
Definition at line 670 of file ctoon.hpp.
References doc_.
Referenced by to_json(), to_json_file(), and to_string().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 696 of file ctoon.hpp.
References doc_, raw(), and ctoon::to_c().
Referenced by ctoon::to_json().
|
inline |
Definition at line 704 of file ctoon.hpp.
References doc_, raw(), and ctoon::to_c().
|
inline |
Definition at line 679 of file ctoon.hpp.
Referenced by ctoon::to_string().
|
inline |
|
inline |
|
inline |
| ctoon_doc* ctoon::document::doc_ |
Definition at line 723 of file ctoon.hpp.
Referenced by get_pointer(), mut_copy(), operator=(), raw(), read_size(), release(), root(), to_json(), to_json_file(), to_string(), val_count(), valid(), write_file(), and ~document().