 |
OpendTect
6.6
|
Go to the documentation of this file.
63 {
return isEqual(iop); }
65 {
return !isEqual(iop); }
72 inline bool isEmpty()
const {
return size() == 0; }
81 inline bool hasKey(
const char* s )
const {
return isPresent(s); }
99 static const char*
compKey(
const char*,
const char*);
104 {
return compKey(ky1,ky2.
str()); }
110 {
return subselect( fs.
str() ); }
116 { removeSubSelection( fs.
str() ); }
122 const char*
find(
const char*)
const;
128 #define mIOParDeclFns(type) \
129 bool get(const char*,type&) const; \
130 bool get(const char*,type&,type&) const; \
131 bool get(const char*,type&,type&,type&) const; \
132 bool get(const char*,type&,type&,type&,type&) const
143 bool getYN(
const char*,
bool&)
const;
144 bool getYN(
const char*,
bool&,
bool&)
const;
145 bool getYN(
const char*,
bool&,
bool&,
bool&)
const;
146 bool getYN(
const char*,
bool&,
bool&,
bool&,
bool&)
const;
147 inline bool isTrue(
const char* key )
const
148 {
bool is =
false;
return getYN(key,is) && is; }
150 {
bool is =
true;
return getYN(key,is) && !is; }
152 bool get(
const char*,
int&,
int&,
float&)
const;
186 #define mIOParDeclFns(type) \
187 bool getScaled(const char*,type&,type applied_scale, \
188 bool set_to_undef_if_not_found) const; \
189 bool getScaled(const char*,type&,type&,type,bool) const; \
190 bool getScaled(const char*,type&,type&,type&,type, \
192 bool getScaled(const char*,type&,type&,type&,type&,type, \
201 void set(
const char* ky,
const char* val);
203 void add(
const char* ky,
const char* val);
206 { add( ky, val.
str() ); }
207 void addVal(
const char* ky,
const char* valtoadd);
210 void update(
const char* ky,
const char* val);
214 #define mIOParDeclFns(fnnm,type) \
215 void fnnm(const char*,type); \
216 void fnnm(const char*,type,type); \
217 void fnnm(const char*,type,type,type); \
218 void fnnm(const char*,type,type,type,type)
238 #define mIOParDeclYNFns(fnnm) \
239 void fnnm##YN(const char*,bool); \
240 void fnnm##YN(const char*,bool,bool); \
241 void fnnm##YN(const char*,bool,bool,bool); \
242 void fnnm##YN(const char*,bool,bool,bool,bool)
245 #undef mIOParDeclYNFns
247 void set(
const char*,
int,
int,
float);
250 void set(
const char*,
const char*,
const char*);
251 void set(
const char*,
const char*,
const char*,
const char*);
300 bool read(
const char* filename,
const char* filetype,
306 bool write(
const char* filename,
const char* filetype)
const;
343 return si ?
get( k, i.start, i.stop, si->step )
344 :
get( k, i.start, i.stop );
352 if ( si )
set( k, i.start, i.stop, si->step );
353 else set( k, i.start, i.stop );
void set(const char *, const BinID &)
#define od_uint64
Definition: plftypes.h:36
void set(const char *ky, const char *val)
A cartesian coordinate in 3D space.
Definition: coord.h:72
object with a name.
Definition: namedobj.h:42
bool read(const char *filename, const char *filetype, bool chktype=false)
void set(const char *, const uiString &)
int minorversion_
Definition: iopar.h:330
void set(const char *, const Coord &)
bool get(const char *, BufferString &, BufferString &) const
IOPar * subselect(const OD::String &fs) const
Definition: iopar.h:109
void set(const char *, const TypeSet< uint64_t > &)
static const char * sKeySubHdr()
Definition: iopar.h:325
bool get(const char *, short &) const
bool hasKey(const char *s) const
Definition: iopar.h:81
void setPatchVersion(int)
bool get(const char *, TypeSet< MultiID > &) const
bool getYN(const char *, bool &, bool &, bool &, bool &) const
void set(const char *, int, int, float)
void fillJSON(OD::JSON::Object &obj)
only save the top level objects
IOPar * subselect(const char *) const
returns iopar with key that start with <str>.
void removeWithKeyPattern(const char *globexpression)
Set of BufferString objects.
Definition: bufstringset.h:26
bool get(const char *, BoolTypeSet &) const
void set(const char *, const Color &)
bool isTrue(const char *key) const
Definition: iopar.h:147
bool get(const char *, TypeSet< uint64_t > &) const
bool get(const char *, TrcKey &) const
#define od_int64
Definition: plftypes.h:35
int indexOf(const char *key) const
OpendTect.
Definition: commontypes.h:28
void set(const char *, const TypeSet< int64_t > &)
#define mExpClass(module)
Definition: commondefs.h:177
void set(const char *, const TypeSet< short > &)
void removeSubSelection(int)
removes with key that start with number.
OD class for stream read common access to the std::cin.
Definition: od_istream.h:24
void set(const char *, const char *, const char *, const char *)
void merge(const IOPar &)
merge entries using the set() command
void set(const char *, const TypeSet< int > &)
void removeSubSelection(const char *)
removes with key that start with <str>.
IOPar(const char *nm=nullptr)
empty
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:148
const char * findKeyFor(const char *, int nr=0) const
returns null if value not found
bool get(const char *, uiString &) const
void setToUser(const char *ky=nullptr)
void set(const char *, const TrcKey &)
bool get(const char *, Coord &) const
void set(const char *, const BoolTypeSet &)
FixedString getValue(int) const
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:81
void putTo(ascostream &) const
bool get(const char *, Color &) const
void setValue(int, const char *)
void set(const char *, const OD::String &)
bool read(od_istream &, const char *filetype, bool chktype=false)
void setPtr(const char *, void *)
bool get(const char *, TypeSet< int > &) const
OpendTect standard ascii format file writing.
Definition: ascstream.h:32
bool get(const char *, TypeSet< double > &) const
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:31
Interval with step.
Definition: commontypes.h:32
A cartesian coordinate in 2D space.
Definition: coord.h:25
void add(const char *ky, const char *val)
bool write(od_ostream &, const char *filetyp) const
const BufferString * find(const BufferStringSet &, const char *)
void putTo(BufferString &) const
void set(const char *, const Coord3 &)
const char * str() const
Definition: odstring.h:47
void set(const char *, const TypeSet< unsigned short > &)
BufferStringSet::idx_type indexOf(const BufferStringSet &, const char *)
void set(const char *, const OD::String &, const OD::String &, const OD::String &)
static const char * compKey(const char *, const char *)
The composite key: (a,b) -> a.b.
bool getYN(const char *, bool &, bool &) const
void set(const char *, const TypeSet< MultiID > &)
void removeWithKey(const char *key)
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:90
void set(const char *, const TypeSet< float > &)
void set(const char *, const OD::String &, const OD::String &)
bool get(const char *, int &, int &, float &) const
void mergeComp(const IOPar &, const char *)
merge entries, where IOPar's entries get a prefix
#define od_int16
Definition: plftypes.h:26
int majorVersion() const
Only set if read from file. Otherwise set to current.
Definition: iopar.h:310
Holds the fundamental sampling info: start and interval.
Definition: samplingdata.h:22
bool get(const char *, TypeSet< float > &) const
static const char * compKey(const char *, int)
The composite key where int will be --> string.
void setToDateTime(const char *ky=nullptr)
void setEmpty()
remove all entries (doesn't clear name)
#define mIOParDeclFns(type)
Definition: iopar.h:214
Definition: separstr.h:136
void putParsTo(BufferString &) const
OD::String that holds an existing text string.
Definition: fixedstring.h:29
T start
Definition: samplingdata.h:49
bool isPresent(const char *ky) const
Definition: iopar.h:69
void set(const char *, const char *, const char *)
#define od_uint16
Definition: plftypes.h:27
void set(T &_to, const F &fr)
template based type conversion
Definition: convert.h:27
void update(const char *ky, const char *val)
BufferStringSet & vals_
Definition: iopar.h:334
void set(const char *, const BufferStringSet &)
bool get(const char *, Coord3 &) const
Compound key consisting of ints.
Definition: multiid.h:24
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
bool get(const char *, DBKeySet &) const
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
int patchVersion() const
Only set if read from file. Otherwise set to current.
bool get(const char *, BufferString &) const
const char * find(const char *) const
returns null if not found
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
bool getPtr(const char *, void *&) const
bool isFalse(const char *key) const
Definition: iopar.h:149
bool get(const char *, TypeSet< unsigned int > &) const
FixedString getKey(int) const
int maxContentSize(bool keys_else_values) const
void set(const char *, const DBKeySet &)
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
void dumpPretty(BufferString &) const
bool get(const char *, BufferString &, BufferString &, BufferString &) const
void setStdCreationEntries()
void getFrom(ascistream &)
bool write(const char *filename, const char *filetype) const
static const char * compKey(const char *ky1, const OD::String &ky2)
Definition: iopar.h:103
void dumpPretty(od_ostream &) const
void removeSubSelection(const OD::String &fs)
Definition: iopar.h:115
bool getYN(const char *, bool &, bool &, bool &) const
bool isEqual(const IOPar &, bool need_same_order=false) const
static const char * sKeyDumpPretty()
Definition: iopar.h:323
void set(const char *, const SeparString &)
bool get(const char *, TypeSet< int64_t > &) const
OpendTect standard ascii format file reading.
Definition: ascstream.h:83
void set(const char *, const TypeSet< unsigned int > &)
bool includes(const IOPar &) const
void set(const char *, const MultiID &)
void getFrom(const char *)
bool setKey(int, const char *)
bool get(const char *, SeparString &) const
FixedString operator[](const char *ky) const
Definition: iopar.h:124
bool get(const char *, BinID &) const
bool get(const char *, BufferStringSet &) const
#define od_uint32
Definition: plftypes.h:31
Interval of values.
Definition: commontypes.h:30
T step
Definition: samplingdata.h:50
bool get(const char *, TypeSet< short > &) const
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer,...
Definition: color.h:26
OD class for stream write common access to the user log file, or std::cout in other than od_main.
Definition: od_ostream.h:26
static const char * sKeyHdr()
Definition: iopar.h:324
bool getYN(const char *, bool &) const
bool isEmpty() const
Definition: iopar.h:72
#define mIOParDeclYNFns(fnnm)
Definition: iopar.h:238
void add(const char *ky, const OD::String &val)
Definition: iopar.h:205
int minorVersion() const
Only set if read from file. Otherwise set to current.
Definition: iopar.h:312
BufferStringSet & keys_
Definition: iopar.h:333
int majorversion_
Definition: iopar.h:329
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
bool get(const char *, TypeSet< unsigned short > &) const
IOPar * subselect(int) const
returns iopar with key that start with number.
void getParsFrom(const char *)
ValueSet where the values and subsets have a key.
Definition: odjson.h:283
bool get(const char *, MultiID &) const
void set(const char *, const TypeSet< double > &)
void addFrom(const IOPar &)
merge entries but do not overwrite
void addVal(const char *ky, const char *valtoadd)
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021