OpendTect
6.6
|
ValueSet where the values and subsets have no key. More...
Public Member Functions | |
Array (bool objects, ValueSet *p=0) | |
Array (const Array &) | |
Array (DataType, ValueSet *p=0) | |
~Array () | |
Array * | add (Array *) |
Array & | add (bool) |
Array & | add (const char *) |
Array & | add (const DBKey &) |
Array & | add (const FilePath &) |
Array & | add (const MultiID &) |
Array & | add (const OD::String &odstr) |
Array & | add (const uiString &) |
Array & | add (double) |
Array & | add (float) |
Array & | add (int) |
Array & | add (int64_t) |
Object * | add (Object *) |
Array & | add (short) |
Array & | add (unsigned int) |
Array & | add (unsigned short) |
virtual Array * | clone () const |
virtual bool | isArray () const |
Array & | set (bool) |
Array & | set (const bool *, size_type) |
void | set (const BoolTypeSet &) |
void | set (const BufferStringSet &) |
Array & | set (const char *) |
Array & | set (const DBKey &) |
void | set (const DBKeySet &) |
Array & | set (const double *, size_type) |
Array & | set (const double) |
Array & | set (const FilePath &) |
Array & | set (const float *, size_type) |
Array & | set (const float) |
Array & | set (const int *, size_type) |
Array & | set (const int) |
Array & | set (const int64_t *, size_type) |
Array & | set (const int64_t) |
Array & | set (const MultiID &) |
Array & | set (const OD::String &) |
Array & | set (const short *, size_type) |
Array & | set (const short) |
void | set (const TypeSet< double > &) |
void | set (const TypeSet< float > &) |
void | set (const TypeSet< int > &) |
void | set (const TypeSet< int64_t > &) |
void | set (const TypeSet< short > &) |
void | set (const TypeSet< unsigned int > &) |
void | set (const TypeSet< unsigned short > &) |
Array & | set (const uiString &) |
void | set (const uiStringSet &) |
Array & | set (const unsigned int *, size_type) |
Array & | set (const unsigned int) |
Array & | set (const unsigned short *, size_type) |
Array & | set (const unsigned short) |
virtual void | setEmpty () |
virtual size_type | size () const |
ValArr & | valArr () |
const ValArr & | valArr () const |
ValueType | valType () const |
virtual ValueType | valueType (idx_type) const |
Public Member Functions inherited from OD::JSON::ValueSet | |
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 |
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 |
Object & | object (idx_type i) |
const Object & | object (idx_type i) const |
uiRetVal | parseJSon (char *buf, int bufsz) |
uiRetVal | read (od_istream &) |
ValueSet * | top () |
const ValueSet * | top () const |
uiRetVal | write (od_ostream &) |
Protected Member Functions | |
void | addVS (ValueSet *) |
template<class T > | |
Array & | setVals (const T *, size_type) |
template<class T > | |
void | setVals (const TypeSet< T > &) |
Protected Member Functions inherited from OD::JSON::ValueSet | |
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 const char * | addarrnonvalstr () |
Static Protected Member Functions inherited from OD::JSON::ValueSet | |
static ValueSet * | gtByParse (char *, int, uiRetVal &, ValueSet *) |
static const char * | gtvalnotplaindatastr () |
Protected Attributes | |
ValArr * | valarr_ |
ValueType | valtype_ |
Protected Attributes inherited from OD::JSON::ValueSet | |
ValueSet * | parent_ |
ObjectSet< Value > | values_ |
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 ValueSet * | getFromJSon (char *buf, int bufsz, uiRetVal &) |
static ValueSet * | read (od_istream &, uiRetVal &) |
ValueSet where the values and subsets have no key.
If it holds plain data (valType()==Data), then you can only add plain values or set all at once. Otherwise, you can only add ValueSet's of the same type (either Array or Object).
<>
OD::JSON::Array::Array | ( | bool | objects, |
ValueSet * | p = 0 |
||
) |
OD::JSON::Array::Array | ( | const Array & | ) |
OD::JSON::Array::~Array | ( | ) |
Array& OD::JSON::Array::add | ( | bool | ) |
Array& OD::JSON::Array::add | ( | const char * | ) |
|
inline |
Array& OD::JSON::Array::add | ( | double | ) |
Array& OD::JSON::Array::add | ( | float | ) |
Array& OD::JSON::Array::add | ( | int | ) |
Array& OD::JSON::Array::add | ( | int64_t | ) |
Array& OD::JSON::Array::add | ( | short | ) |
Array& OD::JSON::Array::add | ( | unsigned int | ) |
Array& OD::JSON::Array::add | ( | unsigned short | ) |
|
inlinestaticprotected |
|
protected |
|
inlinevirtual |
Implements OD::JSON::ValueSet.
|
inlinevirtual |
Implements OD::JSON::ValueSet.
Array& OD::JSON::Array::set | ( | bool | ) |
void OD::JSON::Array::set | ( | const BoolTypeSet & | ) |
void OD::JSON::Array::set | ( | const BufferStringSet & | ) |
Array& OD::JSON::Array::set | ( | const char * | ) |
void OD::JSON::Array::set | ( | const DBKeySet & | ) |
Array& OD::JSON::Array::set | ( | const double | ) |
Array& OD::JSON::Array::set | ( | const float | ) |
Array& OD::JSON::Array::set | ( | const int | ) |
Array& OD::JSON::Array::set | ( | const int64_t | ) |
Array& OD::JSON::Array::set | ( | const OD::String & | ) |
Array& OD::JSON::Array::set | ( | const short | ) |
void OD::JSON::Array::set | ( | const TypeSet< double > & | ) |
void OD::JSON::Array::set | ( | const TypeSet< float > & | ) |
void OD::JSON::Array::set | ( | const TypeSet< int > & | ) |
void OD::JSON::Array::set | ( | const TypeSet< int64_t > & | ) |
void OD::JSON::Array::set | ( | const TypeSet< short > & | ) |
void OD::JSON::Array::set | ( | const TypeSet< unsigned int > & | ) |
void OD::JSON::Array::set | ( | const TypeSet< unsigned short > & | ) |
void OD::JSON::Array::set | ( | const uiStringSet & | ) |
Array& OD::JSON::Array::set | ( | const unsigned int | ) |
Array& OD::JSON::Array::set | ( | const unsigned short | ) |
|
virtual |
Reimplemented from OD::JSON::ValueSet.
|
protected |
|
virtual |
Reimplemented from OD::JSON::ValueSet.
|
inline |
|
inline |
|
inline |
Reimplemented from OD::JSON::ValueSet.
|
friend |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022