50 IOPar(
const char* nm=0);
56 {
return isEqual(iop); }
58 {
return !isEqual(iop); }
61 int indexOf(
const char* key)
const;
66 bool isEqual(
const IOPar&,
bool need_same_order=
false)
const;
69 bool setKey(
int,
const char*);
70 void setValue(
int,
const char*);
72 inline bool hasKey(
const char* s )
const {
return isPresent(s); }
73 const char* findKeyFor(
const char*,
int nr=0)
const;
77 void removeWithKey(
const char* key);
78 void removeWithKeyPattern(
const char* globexpression);
84 void merge(
const IOPar&);
86 void addFrom(
const IOPar&);
88 static const char* compKey(
const char*,
const char*);
90 static const char* compKey(
const char*,
int);
93 {
return compKey(ky1,ky2.
str()); }
94 IOPar* subselect(
const char*)
const;
96 IOPar* subselect(
int)
const;
99 {
return subselect( fs.
str() ); }
100 void removeSubSelection(
const char*);
102 void removeSubSelection(
int);
105 { removeSubSelection( fs.
str() ); }
106 void mergeComp(
const IOPar&,
const char*);
111 const char*
find(
const char*)
const;
117 #define mIOParDeclFns(type) \ 118 bool get(const char*,type&) const; \ 119 bool get(const char*,type&,type&) const; \ 120 bool get(const char*,type&,type&,type&) const; \ 121 bool get(const char*,type&,type&,type&,type&) const 130 bool getYN(
const char*,
bool&)
const;
131 bool getYN(
const char*,
bool&,
bool&)
const;
132 bool getYN(
const char*,
bool&,
bool&,
bool&)
const;
133 bool getYN(
const char*,
bool&,
bool&,
bool&,
bool&)
const;
134 inline bool isTrue(
const char* key )
const 135 {
bool is =
false;
return getYN(key,is) && is; }
137 {
bool is =
true;
return getYN(key,is) && !is; }
139 bool get(
const char*,
int&,
int&,
float&)
const;
148 bool get(
const char*,
BinID&)
const;
149 bool get(
const char*,
TrcKey&)
const;
150 bool get(
const char*,
Coord&)
const;
151 bool get(
const char*,
Coord3&)
const;
152 bool get(
const char*,
MultiID&)
const;
153 bool get(
const char*,
Color&)
const;
155 bool get(
const char*,
uiString&)
const;
157 bool get(
const char*,
BufferString&,BufferString&)
const;
158 bool get(
const char*,BufferString&,BufferString&,
159 BufferString&)
const;
166 bool getPtr(
const char*,
void*&)
const;
168 #define mIOParDeclFns(type) \ 169 bool getScaled(const char*,type&,type applied_scale, \ 170 bool set_to_undef_if_not_found) const; \ 171 bool getScaled(const char*,type&,type&,type,bool) const; \ 172 bool getScaled(const char*,type&,type&,type&,type, \ 174 bool getScaled(const char*,type&,type&,type&,type&,type, \ 183 void set(
const char* ky,
const char* val);
185 void add(
const char* ky,
const char* val);
188 { add( ky, val.
str() ); }
189 void update(
const char* ky,
const char* val);
193 #define mIOParDeclFns(fnnm,type) \ 194 void fnnm(const char*,type); \ 195 void fnnm(const char*,type,type); \ 196 void fnnm(const char*,type,type,type); \ 197 void fnnm(const char*,type,type,type,type) 212 #define mIOParDeclYNFns(fnnm) \ 213 void fnnm##YN(const char*,bool); \ 214 void fnnm##YN(const char*,bool,bool); \ 215 void fnnm##YN(const char*,bool,bool,bool); \ 216 void fnnm##YN(const char*,bool,bool,bool,bool) 219 #undef mIOParDeclYNFns 221 void set(
const char*,int,int,float);
222 void setPtr(
const char*,
void*);
224 void set(
const char*,
const char*,
const char*);
225 void set(
const char*,
const char*,
const char*,
const char*);
226 void set(
const char*,
const BinID&);
227 void set(
const char*,
const TrcKey&);
228 void set(
const char*,
const Coord&);
229 void set(
const char*,
const Coord3&);
230 void set(
const char*,
const MultiID&);
231 void set(
const char*,
const Color&);
233 void set(
const char*,
const uiString&);
237 void set(
const char*,
const OD::String&,
253 void setToDateTime(
const char* ky=0);
254 void setToUser(
const char* ky=0);
255 void setStdCreationEntries();
261 void getFrom(
const char*);
262 void getParsFrom(
const char*);
263 void putTo(BufferString&)
const;
264 void putParsTo(BufferString&)
const;
269 bool read(
const char* filename,
const char* filetype,
275 bool write(
const char* filename,
const char* filetype)
const;
278 bool write(
od_ostream&,
const char* filetyp)
const;
283 int odVersion()
const;
287 void dumpPretty(BufferString&)
const;
309 return si ?
get( k, i.
start, i.
stop, si->step )
318 if ( si )
set( k, i.
start, i.
stop, si->step );
#define mExpClass(module)
Definition: commondefs.h:160
T step
Definition: samplingdata.h:50
int minorVersion() const
Only set if read from file. Otherwise set to current.
Definition: iopar.h:281
#define mIOParDeclFns(type)
Definition: iopar.h:193
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
const char * str() const
Definition: odstring.h:48
static const char * sKeyHdr()
Definition: iopar.h:291
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
OD::String that holds an existing text string.
Definition: fixedstring.h:29
#define od_int64
Definition: plftypes.h:36
OpendTect standard ascii format file writing.
Definition: ascstream.h:32
bool isPresent(const char *ky) const
Definition: iopar.h:62
bool isFalse(const char *key) const
Definition: iopar.h:136
List encoded in a string.
Definition: separstr.h:33
Definition: uistring.h:89
A cartesian coordinate in 2D space.
Definition: coord.h:25
Set of BufferString objects.
Definition: bufstringset.h:28
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
bool get(const char *, int &) const
uiString & operator=(const uiString &)
no copy, ref counted
int majorVersion() const
Only set if read from file. Otherwise set to current.
Definition: iopar.h:279
Interval of values.
Definition: commontypes.h:31
OD class for stream read.
Definition: od_istream.h:24
bool hasKey(const char *s) const
Definition: iopar.h:72
IOPar * subselect(const OD::String &fs) const
Definition: iopar.h:98
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
#define od_uint32
Definition: plftypes.h:32
bool isEmpty() const
Definition: iopar.h:65
BufferStringSet & vals_
Definition: iopar.h:300
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
T start
Definition: samplingdata.h:49
Interval with step.
Definition: commontypes.h:33
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
#define mDynamicCastGet(typ, out, in)
Definition: commondefs.h:131
const T * find(const ObjectSet< T > &os, const S &val)
Get const object in set.
Definition: objectset.h:183
OpendTect standard ascii format file reading.
Definition: ascstream.h:83
A cartesian coordinate in 3D space.
Definition: coord.h:72
#define od_uint64
Definition: plftypes.h:37
#define mIOParDeclYNFns(fnnm)
Definition: iopar.h:212
T stop
Definition: ranges.h:93
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Object with a name.
Definition: namedobj.h:35
FixedString operator[](const char *ky) const
Definition: iopar.h:113
static const char * sKeyDumpPretty()
Definition: iopar.h:290
void add(const char *ky, const OD::String &val)
Definition: iopar.h:187
bool isTrue(const char *key) const
Definition: iopar.h:134
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
T start
Definition: ranges.h:92
static const char * compKey(const char *ky1, const OD::String &ky2)
Definition: iopar.h:92
Holds the fundamental sampling info: start and interval.
Definition: samplingdata.h:22
void removeSubSelection(const OD::String &fs)
Definition: iopar.h:104
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
void set(const char *ky, const char *val)
int majorversion_
Definition: iopar.h:296
BufferStringSet & keys_
Definition: iopar.h:299
static const char * sKeySubHdr()
Definition: iopar.h:292
Compound key consisting of ints.
Definition: multiid.h:25
int minorversion_
Definition: iopar.h:297