OpendTect
7.0
|
holds values and sets of values. Is base class for either Array or Object. More...
Public Types | |
typedef Gason::JsonNode | GasonNode |
typedef size_type | idx_type |
typedef ValArr::size_type | size_type |
enum | ValueType { Data , SubArray , SubObject } |
Public Member Functions | |
virtual | ~ValueSet () |
Array & | array (idx_type i) |
const Array & | array (idx_type i) const |
Array & | asArray () |
const Array & | asArray () const |
Object & | asObject () |
const Object & | asObject () const |
ValueSet & | child (idx_type i) |
const ValueSet & | child (idx_type i) const |
virtual ValueSet * | clone () const =0 |
BufferString | dumpJSon (bool pretty=false) const |
void | dumpJSon (BufferString &, bool pretty=false) const |
void | dumpJSon (StringBuilder &) const |
virtual bool | getBoolValue (idx_type) const |
virtual double | getDoubleValue (idx_type) const |
virtual FilePath | getFilePath (idx_type) const |
virtual std::int64_t | getIntValue (idx_type) const |
virtual BufferString | getStringValue (idx_type) const |
virtual bool | isArray () const =0 |
bool | isArrayChild (idx_type i) const |
virtual bool | isEmpty () const |
bool | isObjectChild (idx_type i) const |
bool | isPlainData (idx_type i) const |
bool | isTop () const |
const BufferString & | key (idx_type) const |
Object & | object (idx_type i) |
const Object & | object (idx_type i) const |
uiRetVal | parseJSon (char *buf, int bufsz) |
uiRetVal | read (od_istream &) |
virtual void | setEmpty () |
virtual size_type | size () const |
ValueSet * | top () |
const ValueSet * | top () const |
virtual ValueType | valueType (idx_type) const |
uiRetVal | write (od_ostream &, bool pretty=false) |
uiRetVal | writePretty (od_ostream &) |
Static Public Member Functions | |
static ValueSet * | getFromJSon (char *buf, int bufsz, uiRetVal &) |
static ValueSet * | read (od_istream &, uiRetVal &) |
Protected Member Functions | |
ValueSet (const ValueSet &) | |
ValueSet (ValueSet *p) | |
Array * | gtArrayByIdx (idx_type) const |
ValueSet * | gtChildByIdx (idx_type) const |
Object * | gtObjectByIdx (idx_type) const |
void | setParent (ValueSet *p) |
void | use (const GasonNode &) |
Static Protected Member Functions | |
static ValueSet * | gtByParse (char *, int, uiRetVal &, ValueSet *) |
Protected Attributes | |
ValueSet * | parent_ |
ObjectSet< Value > | values_ |
Friends | |
class | Array |
class | Object |
class | Value |
|
inlinevirtual |
|
inlineprotected |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in OD::JSON::Object, and OD::JSON::Array.
BufferString OD::JSON::ValueSet::dumpJSon | ( | bool | pretty = false | ) | const |
void OD::JSON::ValueSet::dumpJSon | ( | BufferString & | , |
bool | pretty = false |
||
) | const |
void OD::JSON::ValueSet::dumpJSon | ( | StringBuilder & | ) | const |
|
virtual |
Reimplemented in OD::JSON::Array, and OD::JSON::Object.
|
virtual |
Reimplemented in OD::JSON::Array, and OD::JSON::Object.
Reimplemented in OD::JSON::Array, and OD::JSON::Object.
|
virtual |
Reimplemented in OD::JSON::Array, and OD::JSON::Object.
|
virtual |
Reimplemented in OD::JSON::Array, and OD::JSON::Object.
|
staticprotected |
|
pure virtual |
Implemented in OD::JSON::Object, and OD::JSON::Array.
|
inline |
|
inlinevirtual |
Reimplemented in OD::JSON::Array.
|
inline |
|
inline |
|
inline |
const BufferString& OD::JSON::ValueSet::key | ( | idx_type | ) | const |
uiRetVal OD::JSON::ValueSet::parseJSon | ( | char * | buf, |
int | bufsz | ||
) |
uiRetVal OD::JSON::ValueSet::read | ( | od_istream & | ) |
|
static |
|
virtual |
Reimplemented in OD::JSON::Array.
|
inlineprotected |
|
inlinevirtual |
Reimplemented in OD::JSON::Array.
ValueSet* OD::JSON::ValueSet::top | ( | ) |
const ValueSet* OD::JSON::ValueSet::top | ( | ) | const |
|
protected |
Reimplemented in OD::JSON::Array.
uiRetVal OD::JSON::ValueSet::write | ( | od_ostream & | , |
bool | pretty = false |
||
) |
uiRetVal OD::JSON::ValueSet::writePretty | ( | od_ostream & | ) |
|
friend |
|
friend |
|
friend |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024