Solution46
|
JSON構成情報クラス [詳解]
#include "CJsonConfig.h"
公開メンバ関数 | |
CJsonConfig () noexcept | |
コンストラクタ [詳解] | |
virtual | ~CJsonConfig () noexcept |
デストラクタ [詳解] | |
virtual bool | Load (wchar_t const *pszPath) noexcept |
構成ファイルロード関数 [詳解] | |
virtual bool | Save (wchar_t const *pszPath) noexcept |
構成ファイルセーブ関数 [詳解] | |
virtual bool | GetPath (CString &rcPath, wchar_t const *pszKey=nullptr, int nIndex=-1) noexcept |
JSONパス取得関数 [詳解] | |
virtual bool | Delete (wchar_t const *pszKey, int nIndex=-1) noexcept |
キー設定値削除関数 [詳解] | |
virtual bool | Get (int &rnValue, wchar_t const *pszKey=nullptr, int nIndex=-1) noexcept |
整数型設定値取得関数 [詳解] | |
virtual bool | Set (int nValue, wchar_t const *pszKey=nullptr, int nIndex=-1) noexcept |
整数型設定値設定関数 [詳解] | |
virtual bool | Get (std::initializer_list< int * > const &rpnValueList, wchar_t const *pszKey=nullptr) noexcept |
整数型設定値取得関数 [詳解] | |
virtual bool | Set (std::initializer_list< int > const &rnValueList, wchar_t const *pszKey=nullptr) noexcept |
整数型設定値設定関数 [詳解] | |
virtual bool | Get (double &rfValue, wchar_t const *pszKey=nullptr, int nIndex=-1) noexcept |
JSON設定値浮動小数取得関数 [詳解] | |
virtual bool | Set (double fValue, wchar_t const *pszKey=nullptr, int nIndex=-1) noexcept |
JSON設定値浮動小数設定関数 [詳解] | |
virtual bool | Get (bool &rbValue, wchar_t const *pszKey=nullptr, int nIndex=-1) noexcept |
JSON設定値真理値取得関数 [詳解] | |
virtual bool | Set (bool bValue, wchar_t const *pszKey=nullptr, int nIndex=-1) noexcept |
JSON設定値真理値設定関数 [詳解] | |
virtual bool | Get (CString &rcValue, wchar_t const *pszKey=nullptr, int nIndex=-1) noexcept |
JSON設定値文字列取得関数 [詳解] | |
virtual bool | Set (wchar_t const *pszValue, wchar_t const *pszKey=nullptr, int nIndex=-1) noexcept |
JSON設定値文字列設定関数 [詳解] | |
virtual bool | ResumeWindowPosition (HWND hWnd, wchar_t const *pszKey=KEY_WINDOW_POS) noexcept |
ウィンドウ表示位置復元関数 [詳解] | |
virtual bool | SaveWindowPosition (HWND hWnd, wchar_t const *pszKey=KEY_WINDOW_POS) noexcept |
ウィンドウ表示位置保存関数 [詳解] | |
virtual bool | ResumeShowWindow (HWND hWnd, wchar_t const *pszKey=KEY_SHOW_WINDOW) noexcept |
ウィンドウ表示状態復元関数 [詳解] | |
virtual bool | SaveShowWindow (HWND hWnd, wchar_t const *pszKey=KEY_SHOW_WINDOW) noexcept |
ウィンドウ表示状態保存関数 [詳解] | |
virtual bool | GetShowWindow (HWND hWnd, bool &rbVisible, int &rnShow, wchar_t const *pszKey=KEY_SHOW_WINDOW) noexcept |
ウィンドウ表示状態取得関数 [詳解] | |
virtual bool | SetShowWindow (HWND hWnd, bool bVisible, int nShow, wchar_t const *pszKey=KEY_SHOW_WINDOW) noexcept |
ウィンドウ表示状態設定関数 [詳解] | |
![]() | |
CJsonDocument (CJson *pcJson=nullptr) noexcept | |
コンストラクタ [詳解] | |
virtual | ~CJsonDocument () noexcept |
デストラクタ [詳解] | |
virtual bool | IsEmpty () noexcept |
空状態取得関数 [詳解] | |
virtual CJson * | GetRootJson () noexcept |
ルートJSONクラス取得関数 [詳解] | |
virtual bool | SetRootJson (CJson *pcJson) noexcept |
ルートJSONクラス設定関数 [詳解] | |
virtual CJson * | GetCurrentJson () noexcept |
カレントJSONクラス取得関数 [詳解] | |
virtual bool | SetCurrentJson (CJson *pcJson) noexcept |
カレントJSONクラス設定関数 [詳解] | |
virtual void | ClearDocument () noexcept |
クリア関数 [詳解] | |
virtual bool | CompactDocument () noexcept |
コンパクト化関数 [詳解] | |
virtual bool | InputDocument (CStream &rcStream) noexcept |
JSONドキュメント入力関数 [詳解] | |
virtual bool | OutputDocument (CStreamOut &rcStreamOut) noexcept |
JSONドキュメント出力関数 [詳解] | |
virtual bool | DeleteCurrentJson () noexcept |
カレントJSONクラス削除関数 [詳解] | |
virtual bool | GetCurrentPath (CString &rcPath) noexcept |
カレントパス取得関数 [詳解] | |
virtual bool | SetCurrentPath (wchar_t const *pszPath) noexcept |
カレントパス設定関数 [詳解] | |
virtual bool | GetCurrentSetValue (CString &rcValue, bool bClassName=false, bool bQuotes=true) noexcept |
カレント設定値文字列取得関数 [詳解] | |
virtual bool | SetCurrentSetValue (wchar_t const *pszValue) noexcept |
カレント設定値文字列設定関数 [詳解] | |
virtual bool | CreatePath (wchar_t const *pszPath) noexcept |
JSONパス作成関数 [詳解] | |
静的公開変数類 | |
static wchar_t const *const | KEY_WINDOW_POS = L"ウィンドウ表示位置" |
ウィンドウ表示位置キー文字列 [詳解] | |
static wchar_t const *const | KEY_SHOW_WINDOW = L"ウィンドウ表示状態" |
ウィンドウ表示状態キー文字列 [詳解] | |
非公開メンバ関数 | |
CJsonConfig (CJsonConfig const &)=delete | |
CJsonConfig & | operator= (CJsonConfig const &)=delete |
その他の継承メンバ | |
![]() | |
static bool | GetJsonPath (CString &rcPath, CJson *pcJson) noexcept |
JSONパス取得関数 [詳解] | |
static CJson * | FindJsonPath (wchar_t const *pszPath, CJson *pcJson) noexcept |
JSONパス検索関数 [詳解] | |
static bool | GetJsonSetValue (CString &rcValue, CJson *pcJson, bool bClassName=false, bool bQuotes=true) noexcept |
JSON設定値文字列取得関数 [詳解] | |
static bool | SetJsonSetValue (wchar_t const *pszValue, CJson *&rpcJson) noexcept |
JSON設定値設定関数 [詳解] | |
static bool | SetJsonSetValueByStream (CStream &rcStream, CJson *&rpcJson) noexcept |
JSON設定値ストリーム設定関数 [詳解] | |
static bool | DeleteJson (CJson *&rpcJson) noexcept |
JSONクラス削除関数 [詳解] | |
static bool | CreateJsonPath (wchar_t const *pszPath, CJson *&rpcJson) noexcept |
JSONパス作成関数 [詳解] | |
static bool | GetJsonPathList (CString &rcPathList, CJson *pcJson) noexcept |
JSONパスリスト取得関数 [詳解] | |
![]() | |
enum | EJsonPathToken { EJsonPathToken::Invalid, EJsonPathToken::Separator, EJsonPathToken::Dot, EJsonPathToken::DotDot, EJsonPathToken::Name, EJsonPathToken::Index, EJsonPathToken::Equal, EJsonPathToken::Size } |
JSONパストークン種別列挙体 [詳解] | |
![]() | |
static EJsonPathToken | InputPathToken (CStream &rcStream, CString &rcString, bool bEqual=false) noexcept |
JSONパストークン入力関数 [詳解] | |
static bool | DeleteQuotes (CString &rcString) noexcept |
JSON文字列二重引用符削除関数 [詳解] | |
![]() | |
CJson * | m_pcJsonRoot |
ルートJSONクラスポインタ [詳解] | |
CJson * | m_pcJsonCurrent |
カレントJSONクラスポインタ [詳解] | |
|
explicitnoexcept |
コンストラクタ
コンストラクタです。
なし |
CJsonConfig.cpp の 32 行目に定義があります。
|
inlinevirtualnoexcept |
|
privatedelete |
|
virtualnoexcept |
構成ファイルロード関数
構成ファイルロード関数です。
[in] | pszPath | ファイルパス |
CJsonConfig.cpp の 41 行目に定義があります。
参照先 LibJson::CJsonDocument::InputDocument(), LogOutFooter, LogOutHeader, NewDelLogOut, LibCommon::CFile::Open().
|
virtualnoexcept |
構成ファイルセーブ関数
構成ファイルセーブ関数です。
[in] | pszPath | ファイルパス |
CJsonConfig.cpp の 73 行目に定義があります。
参照先 LibCommon::CFile::Create(), LogOutFooter, LogOutHeader, NewDelLogOut, LibJson::CJsonDocument::OutputDocument().
参照元 AppTest::CAppTest::~CAppTest().
|
virtualnoexcept |
JSONパス取得関数
JSONパス取得関数です。
[out] | rcPath | 文字列参照 |
[in] | pszKey | キー文字列 |
[in] | nIndex | インデックス |
CJsonConfig.cpp の 105 行目に定義があります。
参照先 LibCommon::CString::Format().
|
virtualnoexcept |
キー設定値削除関数
キー設定値削除関数です。
[in] | pszKey | キー文字列 |
[in] | nIndex | インデックス |
CJsonConfig.cpp の 132 行目に定義があります。
参照先 LibJson::CJsonDocument::DeleteJson(), LibJson::CJsonDocument::FindJsonPath(), GetPath(), LibJson::CJsonDocument::m_pcJsonCurrent.
参照元 AppTest::CAppTest::~CAppTest().
|
virtualnoexcept |
整数型設定値取得関数
整数型設定値取得関数です。
[out] | rnValue | 整数型参照 |
[in] | pszKey | キー文字列 |
[in] | nIndex | インデックス |
CJsonConfig.cpp の 165 行目に定義があります。
参照先 LibJson::CJsonDocument::FindJsonPath(), LibJson::CJsonDocument::GetJsonSetValue(), GetPath(), LibJson::CJson::IsJsonNumber(), LibJson::CJsonDocument::m_pcJsonCurrent.
参照元 GetShowWindow(), LibWindow::CWndList::InitElementListConfig(), ResumeWindowPosition().
|
virtualnoexcept |
整数型設定値設定関数
整数型設定値設定関数です。
[in] | nValue | 整数型設定値 |
[in] | pszKey | キー文字列 |
[in] | nIndex | インデックス |
CJsonConfig.cpp の 208 行目に定義があります。
参照先 LibJson::CJsonDocument::CreatePath(), LibCommon::CString::Format(), GetPath().
参照元 LibWindow::CWndList::SaveElementListConfig(), SaveWindowPosition(), SetShowWindow(), AppTest::CAppTest::~CAppTest().
|
virtualnoexcept |
整数型設定値取得関数
整数型設定値取得関数です。
[in] | rpnValueList | 整数型ポインタリスト参照 |
[in] | pszKey | キー文字列 |
CJsonConfig.cpp の 239 行目に定義があります。
参照先 LibJson::CJsonDocument::FindJsonPath(), LibJson::CJsonDocument::GetJsonSetValue(), GetPath(), LibJson::CJson::IsJsonNumber(), LibJson::CJsonDocument::m_pcJsonCurrent.
|
virtualnoexcept |
整数型設定値設定関数
整数型設定値設定関数です。
[in] | rnValueList | 整数型設定値リスト参照 |
[in] | pszKey | キー文字列 |
CJsonConfig.cpp の 292 行目に定義があります。
参照先 LibJson::CJsonDocument::CreatePath(), LibCommon::CString::Format(), GetPath().
|
virtualnoexcept |
JSON設定値浮動小数取得関数
JSON設定値浮動小数取得関数です。
[out] | rfValue | 浮動小数参照 |
[in] | pszKey | キー文字列 |
[in] | nIndex | インデックス |
CJsonConfig.cpp の 336 行目に定義があります。
参照先 LibJson::CJsonDocument::FindJsonPath(), LibJson::CJsonDocument::GetJsonSetValue(), GetPath(), LibJson::CJson::IsJsonNumber(), LibJson::CJsonDocument::m_pcJsonCurrent.
|
virtualnoexcept |
JSON設定値浮動小数設定関数
JSON設定値浮動小数設定関数です。
[in] | fValue | 設定値浮動小数 |
[in] | pszKey | キー文字列 |
[in] | nIndex | インデックス |
CJsonConfig.cpp の 379 行目に定義があります。
参照先 LibJson::CJsonDocument::CreatePath(), LibCommon::CString::Format(), GetPath().
|
virtualnoexcept |
JSON設定値真理値取得関数
JSON設定値真理値取得関数です。
[out] | rbValue | 真理値参照 |
[in] | pszKey | キー文字列 |
[in] | nIndex | インデックス |
CJsonConfig.cpp の 410 行目に定義があります。
参照先 LibJson::CJsonDocument::FindJsonPath(), LibJson::CJsonDocument::GetJsonSetValue(), GetPath(), LibJson::CJson::IsJsonFixed(), LibJson::CJsonDocument::m_pcJsonCurrent.
|
virtualnoexcept |
JSON設定値真理値設定関数
JSON設定値真理値設定関数です。
[in] | bValue | 設定値真理値 |
[in] | pszKey | キー文字列 |
[in] | nIndex | インデックス |
CJsonConfig.cpp の 453 行目に定義があります。
参照先 LibJson::CJsonDocument::CreatePath(), GetPath().
|
virtualnoexcept |
JSON設定値文字列取得関数
JSON設定値文字列取得関数です。
[out] | rcValue | 文字列参照 |
[in] | pszKey | キー文字列 |
[in] | nIndex | インデックス |
CJsonConfig.cpp の 484 行目に定義があります。
参照先 LibJson::CJsonDocument::FindJsonPath(), LibJson::CJsonDocument::GetJsonSetValue(), GetPath(), LibJson::CJsonDocument::m_pcJsonCurrent.
|
virtualnoexcept |
JSON設定値文字列設定関数
JSON設定値文字列設定関数です。
[in] | pszValue | 設定値文字列 |
[in] | pszKey | キー文字列 |
[in] | nIndex | インデックス |
CJsonConfig.cpp の 517 行目に定義があります。
参照先 LibJson::CJsonDocument::CreatePath(), GetPath().
|
virtualnoexcept |
ウィンドウ表示位置復元関数
ウィンドウ表示位置復元関数です。
[in] | hWnd | ウィンドウハンドル |
[in] | pszKey | キー文字列 |
CJsonConfig.cpp の 550 行目に定義があります。
参照先 Get().
|
virtualnoexcept |
ウィンドウ表示位置保存関数
ウィンドウ表示位置保存関数です。
[in] | hWnd | ウィンドウハンドル |
[in] | pszKey | キー文字列 |
CJsonConfig.cpp の 578 行目に定義があります。
参照先 Set().
|
virtualnoexcept |
ウィンドウ表示状態復元関数
ウィンドウ表示状態復元関数です。
[in] | hWnd | ウィンドウハンドル |
[in] | pszKey | キー文字列 |
CJsonConfig.cpp の 609 行目に定義があります。
参照先 GetShowWindow().
|
virtualnoexcept |
ウィンドウ表示状態保存関数
ウィンドウ表示状態保存関数です。
[in] | hWnd | ウィンドウハンドル |
[in] | pszKey | キー文字列 |
CJsonConfig.cpp の 667 行目に定義があります。
参照先 SetShowWindow().
|
virtualnoexcept |
ウィンドウ表示状態取得関数
ウィンドウ表示状態取得関数です。
[in] | hWnd | ウィンドウハンドル |
[out] | rbVisible | WS_VISIBLEスタイルフラグ参照 |
[out] | rnShow | 表示状態参照 |
[in] | pszKey | キー文字列 |
CJsonConfig.cpp の 698 行目に定義があります。
参照先 Get().
参照元 ResumeShowWindow().
|
virtualnoexcept |
ウィンドウ表示状態設定関数
ウィンドウ表示状態設定関数です。
[in] | hWnd | ウィンドウハンドル |
[in] | bVisible | WS_VISIBLEスタイルフラグ |
[in] | nShow | 表示状態 |
[in] | pszKey | キー文字列 |
CJsonConfig.cpp の 722 行目に定義があります。
参照先 KEY_SHOW_WINDOW, KEY_WINDOW_POS, Set().
参照元 SaveShowWindow().
|
privatedelete |
|
static |
|
static |