Jsonデータを取り扱うクラス [詳解]
#include <Json.hpp>
公開メンバ関数 | |
Json () | |
Json (std::string _str) | |
Json (bool _bool) | |
Json (float _float) | |
Json (int _int) | |
Json (const Json &other)=default | |
Json (Json &&other) noexcept=default | |
Json & | operator= (Json &&other) noexcept=default |
Json & | operator= (const Json &other) |
template<class T> | |
const T & | Get () const |
template<class T> | |
T & | Get () |
template<class T> | |
const bool | IsType () |
template<class T> | |
Json & | operator= (const T _in) |
template<typename T, typename = std::enable_if_t<std::is_integral_v<T>>> | |
Json & | operator[] (const T _index) |
Json & | operator[] (const std::string &_key) |
void | Write (const fs::path &_fileName, const fs::path &_directry="./jsonFiles") |
自身をJsonファイルとして書き込みます | |
非公開型 | |
using | Value |
値を管理する共用体 | |
非公開メンバ関数 | |
void | Write (std::ofstream &_file, unsigned int _depth=0) |
void | WriteNotText (std::ofstream &_file, unsigned int _depth=0) |
void | WriteText (std::ofstream &_file, unsigned int _depth=0) |
void | WriteObject (std::ofstream &_file, unsigned int _depth=0) |
void | WriteArray (std::ofstream &_file, unsigned int _depth=0) |
void | WriteJsonDepth (std::ofstream &_file, unsigned int _depth=0) |
非公開変数類 | |
const int | TEXT_INDEX = 4 |
Value | value |
Jsonデータを取り扱うクラス
|
private |
値を管理する共用体
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
自身をJsonファイルとして書き込みます
_fileName | 保存ファイル名(拡張子の省略可能) |
_directry | 保存先ディレクトリのパス デフォルト値は"./jsonFiles" |
参照元 Write().
|
inlineprivate |
|
inlineprivate |
参照元 Write().
|
inlineprivate |
参照元 Write().
|
inlineprivate |
参照元 Write().
|
inlineprivate |
参照元 Write().
|
inlineprivate |
参照元 WriteArray(), WriteObject().
|
private |
参照元 Write().
|
private |
参照元 Get(), Get(), IsType(), Json(), Json(), Json(), Json(), Json(), operator=(), operator=(), operator[](), operator[](), Write(), Write(), WriteArray(), WriteNotText(), WriteObject(), WriteText() (計18項目).