13 #pragma managed( push, off ) 30 : m_rcConfig( rcConfig )
37 if ( m_rcConfig.IsEmpty() ) {
39 if ( !m_rcConfig.SetCurrentSetValue( L
"{}" ) ) {
46 if ( !m_rcConfig.GetCurrentPath( m_cCurrPath ) ) {
51 else if (
nullptr != pszPath ) {
53 if ( !m_rcConfig.SetCurrentPath( pszPath ) ) {
55 if ( !m_rcConfig.CreatePath( pszPath ) ) {
60 else if ( !m_rcConfig.SetCurrentPath( pszPath ) ) {
75 CJson* pcJson = m_rcConfig.FindJsonPath( cSection, m_rcConfig.GetCurrentJson() );
76 if (
nullptr == pcJson ) {
78 if ( !m_rcConfig.CreatePath( cSection ) ) {
85 if ( !m_rcConfig.SetCurrentPath( cSection ) ) {
92 if ( !m_rcConfig.SetCurrentSetValue( L
"null" ) ) {
112 if ( ( 0 == ::wcscmp( L
"null", cValue ) ) || ( 0 == ::wcscmp( L
"{}", cValue ) ) ) {
124 #pragma managed( pop ) virtual bool GetCurrentSetValue(CString &rcValue, bool bClassName=false, bool bQuotes=true) noexcept
カレント設定値文字列取得関数
CString m_cCurrPath
JSONカレントパス
virtual bool DeleteCurrentJson() noexcept
カレントJSONクラス削除関数
CJsonConfigAuto(CJsonConfig &rcConfig, wchar_t const *pszSection, int nIndex, wchar_t const *pszPath, bool bClear=false) noexcept
コンストラクタ
virtual wchar_t const * Format(wchar_t const *pszFormat,...) noexcept
書式設定文字列代入関数
CJsonConfig & m_rcConfig
JSON構成情報参照
virtual bool SetCurrentPath(wchar_t const *pszPath) noexcept
カレントパス設定関数
virtual ~CJsonConfigAuto() noexcept
デストラクタ
JSON構成情報自動セクションブロッククラスヘッダファイル