OpendTect  7.0
Public Member Functions | Protected Member Functions | Friends | List of all members
OD::JSON::Object Class Reference

ValueSet where the values and subsets have a key. More...

Inheritance diagram for OD::JSON::Object:
[legend]

Public Member Functions

 Object (const Object &)
 
 Object (ValueSet *p=0)
 
Objectclone () const override
 
template<class T >
bool get (const char *, Interval< T > &) const
 
ArraygetArray (const BufferStringSet &bskey)
 
const ArraygetArray (const BufferStringSet &bskey) const
 
ArraygetArray (const char *ky)
 
const ArraygetArray (const char *ky) const
 
bool getBoolValue (const char *) const
 
bool getBoolValue (const OD::String &str) const
 
bool getBoolValue (idx_type idx) const override
 
ValueSetgetChild (const BufferStringSet &bskey)
 
const ValueSetgetChild (const BufferStringSet &bskey) const
 
ValueSetgetChild (const char *ky)
 
const ValueSetgetChild (const char *ky) const
 
double getDoubleValue (const char *) const
 
double getDoubleValue (const OD::String &str) const
 
double getDoubleValue (idx_type idx) const override
 
FilePath getFilePath (const char *) const
 
FilePath getFilePath (const OD::String &str) const
 
FilePath getFilePath (idx_type idx) const override
 
bool getGeomID (const char *, Pos::GeomID &) const
 
std::int64_t getIntValue (const char *) const
 
std::int64_t getIntValue (const OD::String &str) const
 
std::int64_t getIntValue (idx_type idx) const override
 
ObjectgetObject (const BufferStringSet &bskey)
 
const ObjectgetObject (const BufferStringSet &bskey) const
 
ObjectgetObject (const char *ky)
 
const ObjectgetObject (const char *ky) const
 
bool getStrings (const char *, BufferStringSet &) const
 
BufferString getStringValue (const char *) const
 
BufferString getStringValue (const OD::String &str) const
 
BufferString getStringValue (idx_type idx) const override
 
void getSubObjKeys (BufferStringSet &) const
 
idx_type indexOf (const char *) const
 
bool isArray () const override
 
bool isPresent (const char *ky) const
 
void remove (const char *)
 
Arrayset (const char *ky, Array *)
 
void set (const char *ky, bool)
 
void set (const char *ky, const char *)
 
void set (const char *ky, const DBKey &)
 
void set (const char *ky, const FilePath &)
 
template<class T >
void set (const char *ky, const Interval< T > &)
 
void set (const char *ky, const MultiID &)
 
void set (const char *ky, const OD::String &str)
 
void set (const char *ky, const uiString &)
 
void set (const char *ky, double)
 
void set (const char *ky, float)
 
Objectset (const char *ky, Object *)
 
void set (const char *ky, std::int16_t)
 
void set (const char *ky, std::int32_t)
 
void set (const char *ky, std::int64_t)
 
void set (const char *ky, std::uint16_t)
 
void set (const char *ky, std::uint32_t)
 
- Public Member Functions inherited from OD::JSON::ValueSet
virtual ~ValueSet ()
 
Arrayarray (idx_type i)
 
const Arrayarray (idx_type i) const
 
ArrayasArray ()
 
const ArrayasArray () const
 
ObjectasObject ()
 
const ObjectasObject () const
 
ValueSetchild (idx_type i)
 
const ValueSetchild (idx_type i) const
 
BufferString dumpJSon (bool pretty=false) const
 
void dumpJSon (BufferString &, bool pretty=false) const
 
void dumpJSon (StringBuilder &) const
 
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 BufferStringkey (idx_type) const
 
Objectobject (idx_type i)
 
const Objectobject (idx_type i) const
 
uiRetVal parseJSon (char *buf, int bufsz)
 
uiRetVal read (od_istream &)
 
virtual void setEmpty ()
 
virtual size_type size () const
 
ValueSettop ()
 
const ValueSettop () const
 
virtual ValueType valueType (idx_type) const
 
uiRetVal write (od_ostream &, bool pretty=false)
 
uiRetVal writePretty (od_ostream &)
 

Protected Member Functions

ArraygtArrayByKey (const char *) const
 
ArraygtArrayByKeys (const BufferStringSet &) const
 
ValueSetgtChildByKey (const char *) const
 
ValueSetgtChildByKeys (const BufferStringSet &) const
 
ObjectgtObjectByKey (const char *) const
 
ObjectgtObjectByKeys (const BufferStringSet &) const
 
void set (KeyedValue *)
 
template<class T >
void setVal (const char *, T)
 
void setVS (const char *, ValueSet *)
 
- Protected Member Functions inherited from OD::JSON::ValueSet
 ValueSet (const ValueSet &)
 
 ValueSet (ValueSet *p)
 
ArraygtArrayByIdx (idx_type) const
 
ValueSetgtChildByIdx (idx_type) const
 
ObjectgtObjectByIdx (idx_type) const
 
void setParent (ValueSet *p)
 
void use (const GasonNode &)
 

Friends

class ValueSet
 

Additional Inherited Members

- Public Types inherited from OD::JSON::ValueSet
typedef Gason::JsonNode GasonNode
 
typedef size_type idx_type
 
typedef ValArr::size_type size_type
 
enum  ValueType { Data , SubArray , SubObject }
 
- Static Public Member Functions inherited from OD::JSON::ValueSet
static ValueSetgetFromJSon (char *buf, int bufsz, uiRetVal &)
 
static ValueSetread (od_istream &, uiRetVal &)
 
- Static Protected Member Functions inherited from OD::JSON::ValueSet
static ValueSetgtByParse (char *, int, uiRetVal &, ValueSet *)
 
- Protected Attributes inherited from OD::JSON::ValueSet
ValueSetparent_
 
ObjectSet< Valuevalues_
 

Detailed Description

ValueSet where the values and subsets have a key.

<>

Constructor & Destructor Documentation

◆ Object() [1/2]

OD::JSON::Object::Object ( ValueSet p = 0)
inline

◆ Object() [2/2]

OD::JSON::Object::Object ( const Object )

Member Function Documentation

◆ clone()

Object* OD::JSON::Object::clone ( ) const
inlineoverridevirtual

Implements OD::JSON::ValueSet.

◆ get()

template<class T >
bool OD::JSON::Object::get ( const char *  key,
Interval< T > &  intrvl 
) const
inline

◆ getArray() [1/4]

Array* OD::JSON::Object::getArray ( const BufferStringSet bskey)
inline

◆ getArray() [2/4]

const Array* OD::JSON::Object::getArray ( const BufferStringSet bskey) const
inline

◆ getArray() [3/4]

Array* OD::JSON::Object::getArray ( const char *  ky)
inline

◆ getArray() [4/4]

const Array* OD::JSON::Object::getArray ( const char *  ky) const
inline

◆ getBoolValue() [1/3]

bool OD::JSON::Object::getBoolValue ( const char *  ) const

◆ getBoolValue() [2/3]

bool OD::JSON::Object::getBoolValue ( const OD::String str) const
inline

◆ getBoolValue() [3/3]

bool OD::JSON::Object::getBoolValue ( idx_type  idx) const
inlineoverridevirtual

Reimplemented from OD::JSON::ValueSet.

◆ getChild() [1/4]

ValueSet* OD::JSON::Object::getChild ( const BufferStringSet bskey)
inline

◆ getChild() [2/4]

const ValueSet* OD::JSON::Object::getChild ( const BufferStringSet bskey) const
inline

◆ getChild() [3/4]

ValueSet* OD::JSON::Object::getChild ( const char *  ky)
inline

◆ getChild() [4/4]

const ValueSet* OD::JSON::Object::getChild ( const char *  ky) const
inline

◆ getDoubleValue() [1/3]

double OD::JSON::Object::getDoubleValue ( const char *  ) const

◆ getDoubleValue() [2/3]

double OD::JSON::Object::getDoubleValue ( const OD::String str) const
inline

◆ getDoubleValue() [3/3]

double OD::JSON::Object::getDoubleValue ( idx_type  idx) const
inlineoverridevirtual

Reimplemented from OD::JSON::ValueSet.

◆ getFilePath() [1/3]

FilePath OD::JSON::Object::getFilePath ( const char *  ) const

◆ getFilePath() [2/3]

FilePath OD::JSON::Object::getFilePath ( const OD::String str) const
inline

◆ getFilePath() [3/3]

FilePath OD::JSON::Object::getFilePath ( idx_type  idx) const
inlineoverridevirtual

Reimplemented from OD::JSON::ValueSet.

◆ getGeomID()

bool OD::JSON::Object::getGeomID ( const char *  ,
Pos::GeomID  
) const

◆ getIntValue() [1/3]

std::int64_t OD::JSON::Object::getIntValue ( const char *  ) const

◆ getIntValue() [2/3]

std::int64_t OD::JSON::Object::getIntValue ( const OD::String str) const
inline

◆ getIntValue() [3/3]

std::int64_t OD::JSON::Object::getIntValue ( idx_type  idx) const
inlineoverridevirtual

Reimplemented from OD::JSON::ValueSet.

◆ getObject() [1/4]

Object* OD::JSON::Object::getObject ( const BufferStringSet bskey)
inline

◆ getObject() [2/4]

const Object* OD::JSON::Object::getObject ( const BufferStringSet bskey) const
inline

◆ getObject() [3/4]

Object* OD::JSON::Object::getObject ( const char *  ky)
inline

◆ getObject() [4/4]

const Object* OD::JSON::Object::getObject ( const char *  ky) const
inline

◆ getStrings()

bool OD::JSON::Object::getStrings ( const char *  ,
BufferStringSet  
) const

◆ getStringValue() [1/3]

BufferString OD::JSON::Object::getStringValue ( const char *  ) const

◆ getStringValue() [2/3]

BufferString OD::JSON::Object::getStringValue ( const OD::String str) const
inline

◆ getStringValue() [3/3]

BufferString OD::JSON::Object::getStringValue ( idx_type  idx) const
inlineoverridevirtual

Reimplemented from OD::JSON::ValueSet.

◆ getSubObjKeys()

void OD::JSON::Object::getSubObjKeys ( BufferStringSet ) const

◆ gtArrayByKey()

Array* OD::JSON::Object::gtArrayByKey ( const char *  ) const
protected

◆ gtArrayByKeys()

Array* OD::JSON::Object::gtArrayByKeys ( const BufferStringSet ) const
protected

◆ gtChildByKey()

ValueSet* OD::JSON::Object::gtChildByKey ( const char *  ) const
protected

◆ gtChildByKeys()

ValueSet* OD::JSON::Object::gtChildByKeys ( const BufferStringSet ) const
protected

◆ gtObjectByKey()

Object* OD::JSON::Object::gtObjectByKey ( const char *  ) const
protected

◆ gtObjectByKeys()

Object* OD::JSON::Object::gtObjectByKeys ( const BufferStringSet ) const
protected

◆ indexOf()

idx_type OD::JSON::Object::indexOf ( const char *  ) const

◆ isArray()

bool OD::JSON::Object::isArray ( ) const
inlineoverridevirtual

Implements OD::JSON::ValueSet.

◆ isPresent()

bool OD::JSON::Object::isPresent ( const char *  ky) const
inline

◆ remove()

void OD::JSON::Object::remove ( const char *  )

◆ set() [1/18]

Array* OD::JSON::Object::set ( const char *  ky,
Array  
)

◆ set() [2/18]

void OD::JSON::Object::set ( const char *  ky,
bool   
)

◆ set() [3/18]

void OD::JSON::Object::set ( const char *  ky,
const char *   
)

◆ set() [4/18]

void OD::JSON::Object::set ( const char *  ky,
const DBKey  
)

◆ set() [5/18]

void OD::JSON::Object::set ( const char *  ky,
const FilePath  
)

◆ set() [6/18]

template<class T >
void OD::JSON::Object::set ( const char *  ky,
const Interval< T > &  intrvl 
)
inline

◆ set() [7/18]

void OD::JSON::Object::set ( const char *  ky,
const MultiID  
)

◆ set() [8/18]

void OD::JSON::Object::set ( const char *  ky,
const OD::String str 
)
inline

◆ set() [9/18]

void OD::JSON::Object::set ( const char *  ky,
const uiString  
)

◆ set() [10/18]

void OD::JSON::Object::set ( const char *  ky,
double   
)

◆ set() [11/18]

void OD::JSON::Object::set ( const char *  ky,
float   
)

◆ set() [12/18]

Object* OD::JSON::Object::set ( const char *  ky,
Object  
)

◆ set() [13/18]

void OD::JSON::Object::set ( const char *  ky,
std::int16_t   
)

◆ set() [14/18]

void OD::JSON::Object::set ( const char *  ky,
std::int32_t   
)

◆ set() [15/18]

void OD::JSON::Object::set ( const char *  ky,
std::int64_t   
)

◆ set() [16/18]

void OD::JSON::Object::set ( const char *  ky,
std::uint16_t   
)

◆ set() [17/18]

void OD::JSON::Object::set ( const char *  ky,
std::uint32_t   
)

◆ set() [18/18]

void OD::JSON::Object::set ( KeyedValue *  )
protected

◆ setVal()

template<class T >
void OD::JSON::Object::setVal ( const char *  ,
 
)
protected

◆ setVS()

void OD::JSON::Object::setVS ( const char *  ,
ValueSet  
)
protected

Friends And Related Function Documentation

◆ ValueSet

friend class ValueSet
friend

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024