OpendTect  6.3
linekey.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  Author: A.H. Bril
7  Date: Oct 2004
8 ________________________________________________________________________
9 
10 -*/
11 
12 #include "generalmod.h"
13 #include "bufstring.h"
14 
15 
20 mExpClass(General) LineKey : public BufferString
21 {
22 public:
23 
25  : BufferString("") {}
26  mDeprecated LineKey(const char* s)
27  : BufferString(s) {}
28  mDeprecated LineKey(const char*,const char* attrnm);
29  mDeprecated LineKey( const IOPar& iop, bool liin )
30  { usePar(iop,liin); }
31  bool operator ==(const LineKey&) const;
32 
33  BufferString lineName() const;
34  BufferString attrName() const;
35  void setLineName(const char* lnm);
36  void setAttrName(const char* anm);
37 
38  void fillPar(IOPar&,bool linename_is_iopar_name) const;
39  bool usePar(const IOPar&,bool linename_is_iopar_name);
40 
41  static const char* sKeyDefAttrib() { return ""; }
42 };
#define mExpClass(module)
Definition: commondefs.h:157
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
mDeprecated LineKey(const char *s)
Definition: linekey.h:26
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
mDeprecated LineKey()
Definition: linekey.h:24
Deprecated: If you want a class with a pair of strings use StringPair.
Definition: linekey.h:20
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
#define mDeprecated
Definition: plfdefs.h:213
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
static const char * sKeyDefAttrib()
Definition: linekey.h:41
mDeprecated LineKey(const IOPar &iop, bool liin)
Definition: linekey.h:29
FixedString LineKey()
Definition: keystrs.h:82

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