Lumino
ln::JsonReader Class Reference

SAXスタイルの JSON リーダーです。 More...

#include <JsonReader.hpp>

Public Member Functions

 JsonReader (const String &text)
 読み取る文字列を指定して構築します。
 
 JsonReader (TextReader *textReader)
 文字列を読み取るための TextReader を指定して構築します。
 
bool read ()
 次のノードを読み取ります。  More...
 
JsonNode nodeType () const
 現在のノードの種類を取得します。
 
const Stringvalue () const
 現在のノードの値 (文字列形式) を取得します。 値が無い場合は空文字列を返します。
 
const StringpropertyName () const
 現在のプロパティ (Object のメンバ) の名前を取得します。
 
bool boolValue () const
 現在のノードが Bool である場合、パース結果の bool 値を取得できます。
 
int32_t int32Value () const
 現在のノードが Int32 である場合、パース結果の int32_t 値を取得できます。
 
int64_t int64Value () const
 現在のノードが Int64 である場合、パース結果の int64_t 値を取得できます。
 
float floatValue () const
 現在のノードが Float である場合、パース結果の float 値を取得できます。
 
double doubleValue () const
 現在のノードが Double である場合、パース結果の double 値を取得できます。
 
const JsonDiagdiag () const
 JSON 解析の診断情報を取得します。
 

Detailed Description

SAXスタイルの JSON リーダーです。

Member Function Documentation

◆ read()

bool ln::JsonReader::read ( )

次のノードを読み取ります。 

正常に読み取られた場合は true を返します。続いて value() などで値を取得できます。 それ以上読み取るノードが存在しない場合は false を返します。


The documentation for this class was generated from the following file: