OpendTect  6.6
Public Member Functions | Protected Member Functions | Static 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)
 
virtual Objectclone () const
 
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
 
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
 
FilePath getFilePath (const char *) const
 
bool getGeomID (const char *, Pos::GeomID &) const
 
int64_t getIntValue (const char *) const
 
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
 
void getSubObjKeys (BufferStringSet &) const
 
idx_type indexOf (const char *) const
 
virtual bool isArray () const
 
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)
 
void set (const char *ky, int)
 
void set (const char *ky, int64_t)
 
Objectset (const char *ky, Object *)
 
void set (const char *ky, short)
 
void set (const char *ky, unsigned int)
 
void set (const char *ky, unsigned short)
 
- 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 () const
 
void dumpJSon (BufferString &) const
 
void dumpJSon (StringBuilder &) const
 
bool getBoolValue (idx_type) const
 
double getDoubleValue (idx_type) const
 
FilePath getFilePath (idx_type) const
 
int64_t getIntValue (idx_type) const
 
BufferString getStringValue (idx_type) 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
 
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 &)
 

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 &)
 

Static Protected Member Functions

static const char * errnoemptykey ()
 
- Static Protected Member Functions inherited from OD::JSON::ValueSet
static ValueSetgtByParse (char *, int, uiRetVal &, ValueSet *)
 
static const char * gtvalnotplaindatastr ()
 

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 &)
 
- 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()

virtual Object* OD::JSON::Object::clone ( ) const
inlinevirtual

Implements OD::JSON::ValueSet.

◆ errnoemptykey()

static const char* OD::JSON::Object::errnoemptykey ( )
inlinestaticprotected

◆ 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()

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

◆ 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()

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

◆ getFilePath()

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

◆ getGeomID()

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

◆ getIntValue()

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

◆ 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()

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

◆ 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()

virtual bool OD::JSON::Object::isArray ( ) const
inlinevirtual

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]

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

◆ set() [13/18]

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

◆ set() [14/18]

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

◆ set() [15/18]

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

◆ set() [16/18]

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

◆ set() [17/18]

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

◆ 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-2022