JSON解析用ノード More...
#include <GxJson.h>
Public Member Functions | |
アクセサ | |
GX_FORCE_INLINE const GxJsonNode | operator[] (GX_CSTR name) const |
文字列指定 | |
GX_FORCE_INLINE const GxJsonNode | operator[] (u32 i) const |
インデックス指定 | |
GX_FORCE_INLINE b32 | hasMember (GX_CSTR name) const |
メンバ保持判定 | |
GX_FORCE_INLINE b32 | isArray (void) const |
配列か判定 | |
GX_FORCE_INLINE u32 | getArrayCount (void) const |
配列要素数を取得 | |
GX_FORCE_INLINE b32 | isS32 (void) const |
S32か判定 | |
GX_FORCE_INLINE s32 | getS32 (void) const |
S32値を取得 | |
s32 | getS32 (GX_CSTR name, s32 defaultValue, s32 index=-1) const |
S32値を取得 | |
GX_FORCE_INLINE b32 | isU32 (void) const |
U32か判定 | |
GX_FORCE_INLINE u32 | getU32 (void) const |
U32値を取得 | |
u32 | getU32 (GX_CSTR name, u32 defaultValue, s32 index=-1) const |
U32値を取得 | |
GX_FORCE_INLINE b32 | isS64 (void) const |
S64か判定 | |
GX_FORCE_INLINE s64 | getS64 (void) const |
S64値を取得 | |
s64 | getS64 (GX_CSTR name, s64 defaultValue, s32 index=-1) const |
S64値を取得 | |
GX_FORCE_INLINE b32 | isU64 (void) const |
U64か判定 | |
GX_FORCE_INLINE u64 | getU64 (void) const |
U64値を取得 | |
u64 | getU64 (GX_CSTR name, u64 defaultValue, s32 index=-1) const |
U64値を取得 | |
GX_FORCE_INLINE b32 | isF32 (void) const |
F32か判定 | |
GX_FORCE_INLINE f32 | getF32 (void) const |
F32値を取得 | |
f32 | getF32 (GX_CSTR name, f32 defaultValue, s32 index=-1) const |
F32値を取得 | |
GX_FORCE_INLINE b32 | isF64 (void) const |
F64か判定 | |
GX_FORCE_INLINE f64 | getF64 (void) const |
F64値を取得 | |
f64 | getF64 (GX_CSTR name, f64 defaultValue, s32 index=-1) const |
F64値を取得 | |
GX_FORCE_INLINE b32 | isB32 (void) const |
B32か判定 | |
GX_FORCE_INLINE b32 | getB32 (void) const |
B32値を取得 | |
b32 | getB32 (GX_CSTR name, b32 defaultValue, s32 index=-1) const |
B32値を取得 | |
GX_FORCE_INLINE b32 | isString (void) const |
文字列か判定 | |
GX_FORCE_INLINE GX_CSTR | getString (void) const |
文字列を取得 | |
GX_CSTR | getString (GX_CSTR name, GX_CSTR defaultValue, s32 index=-1) const |
文字列を取得 | |
GX_FORCE_INLINE u32 | getStringLength (void) const |
文字列の長さを取得 | |
GX_FORCE_INLINE b32 | isObject (void) const |
オブジェクトか判定 | |
GX_FORCE_INLINE b32 | isNumber (void) const |
数値か判定 | |
GX_FORCE_INLINE b32 | isNull (void) const |
Nullか判定 | |
GxSize | getSize (GX_CSTR name, const GxSize &defaultValue, s32 index=-1) const |
GxSizeを取得 | |
GxRect | getRect (GX_CSTR name, const GxRect &defaultValue, s32 index=-1) const |
GxRectを取得 | |
GxColor | getColor (GX_CSTR name, const GxColor &defaultValue, s32 index=-1) const |
GxColorを取得 | |
GxVector2 | getVector2 (GX_CSTR name, const GxVector2 &defaultValue, s32 index=-1) const |
GxVector2を取得 | |
GxPoint2 | getPoint2 (GX_CSTR name, const GxPoint2 &defaultValue, s32 index=-1) const |
GxPoint2を取得 | |
GxFlag32Base | getFlag32Base (GX_CSTR name, const GxFlag32Base &defaultValue, s32 index=-1) const |
GxFlag32Baseを取得 | |
Friends | |
定義 | |
class | GxJson |
初期化 | |
GxJsonNode (const GxJsonNode &node) | |
コピーコンストラクタ | |
JSON解析用ノード
B32値を取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
GxColor GxJson::GxJsonNode::getColor | ( | GX_CSTR | name, |
const GxColor & | defaultValue, | ||
s32 | index = -1 ) const |
GxColorを取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
f32 GxJson::GxJsonNode::getF32 | ( | GX_CSTR | name, |
f32 | defaultValue, | ||
s32 | index = -1 ) const |
F32値を取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
f64 GxJson::GxJsonNode::getF64 | ( | GX_CSTR | name, |
f64 | defaultValue, | ||
s32 | index = -1 ) const |
F64値を取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
GxFlag32Base GxJson::GxJsonNode::getFlag32Base | ( | GX_CSTR | name, |
const GxFlag32Base & | defaultValue, | ||
s32 | index = -1 ) const |
GxFlag32Baseを取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
GxPoint2 GxJson::GxJsonNode::getPoint2 | ( | GX_CSTR | name, |
const GxPoint2 & | defaultValue, | ||
s32 | index = -1 ) const |
GxPoint2を取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
GxRect GxJson::GxJsonNode::getRect | ( | GX_CSTR | name, |
const GxRect & | defaultValue, | ||
s32 | index = -1 ) const |
GxRectを取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
s32 GxJson::GxJsonNode::getS32 | ( | GX_CSTR | name, |
s32 | defaultValue, | ||
s32 | index = -1 ) const |
S32値を取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
s64 GxJson::GxJsonNode::getS64 | ( | GX_CSTR | name, |
s64 | defaultValue, | ||
s32 | index = -1 ) const |
S64値を取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
GxSize GxJson::GxJsonNode::getSize | ( | GX_CSTR | name, |
const GxSize & | defaultValue, | ||
s32 | index = -1 ) const |
GxSizeを取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
GX_CSTR GxJson::GxJsonNode::getString | ( | GX_CSTR | name, |
GX_CSTR | defaultValue, | ||
s32 | index = -1 ) const |
文字列を取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
u32 GxJson::GxJsonNode::getU32 | ( | GX_CSTR | name, |
u32 | defaultValue, | ||
s32 | index = -1 ) const |
U32値を取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
u64 GxJson::GxJsonNode::getU64 | ( | GX_CSTR | name, |
u64 | defaultValue, | ||
s32 | index = -1 ) const |
U64値を取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |
GxVector2 GxJson::GxJsonNode::getVector2 | ( | GX_CSTR | name, |
const GxVector2 & | defaultValue, | ||
s32 | index = -1 ) const |
GxVector2を取得
name | [in] 名前 |
defaultValue | [in] デフォルト値 |
index | [in] 配列インデックス |