OpendTect  6.6
Public Member Functions | Static Public Member Functions | List of all members
LineKey Class Reference

Key for a line in a line set. More...

Inheritance diagram for LineKey:
[legend]

Public Member Functions

 LineKey (const char *, const char *attrnm)
 
 LineKey (const char *lk=0)
 
 LineKey (const IOPar &iop, bool liin)
 
BufferString attrName () const
 
void fillPar (IOPar &, bool linename_is_iopar_name) const
 
BufferString lineName () const
 
bool operator== (const char *lk) const
 
bool operator== (const LineKey &) const
 
void setAttrName (const char *anm)
 
void setLineName (const char *lnm)
 
bool usePar (const IOPar &, bool linename_is_iopar_name)
 
- Public Member Functions inherited from BufferString
 BufferString ()
 
 BufferString (const BufferString &)
 
 BufferString (const char *)
 
template<class T >
 BufferString (const char *, const T &, const char *s=nullptr)
 
 BufferString (const OD::String &)
 
 BufferString (const QString &)
 
template<class T >
 BufferString (const T &)
 
 BufferString (int minlen, bool setnull)
 
virtual ~BufferString ()
 
BufferStringadd (char)
 
BufferStringadd (const char *)
 
BufferStringadd (const OD::String &s)
 
BufferStringadd (const QString &)
 
template<class T >
BufferStringadd (const T &)
 
BufferStringadd (double, int nrdec)
 
BufferStringadd (float, int nrdec)
 
BufferStringaddLim (double, int maxnrchars)
 
BufferStringaddLim (float, int maxnrchars)
 
BufferStringaddNewLine (int nrnewlines=1)
 
BufferStringaddSpace (int nrspaces=1)
 
BufferStringaddTab (int nrtabs=1)
 
unsigned int bufSize () const
 
BufferStringclean (CleanType ct=OnlyAlphaNum)
 
BufferStringembed (char open, char close)
 
void fill (char *, int maxnrchar) const
 fill old C-style char buf More...
 
char * find (char)
 
const char * find (char) const
 
char * find (const char *)
 
const char * find (const char *) const
 
char * findLast (char)
 
const char * findLast (char) const
 
char * findLast (const char *)
 
const char * findLast (const char *) const
 
char & first ()
 
char * getCStr ()
 
BufferStringinsertAt (int idx, const char *)
 
char & last ()
 
unsigned int minBufSize () const
 
 operator const char * () const
 
bool operator!= (const BufferString &) const
 
bool operator!= (const char *) const
 
bool operator!= (const FixedString &) const
 
bool operator!= (const OD::String &) const
 
BufferStringoperator+= (const char *s)
 
BufferStringoperator+= (const OD::String &s)
 
template<class T >
BufferStringoperator+= (const T &t)
 
BufferStringoperator= (const BufferString &b)
 
BufferStringoperator= (const char *s)
 
BufferStringoperator= (const FixedString &s)
 
BufferStringoperator= (const OD::String &s)
 
template<class T >
BufferStringoperator= (const T &)
 
bool operator== (const BufferString &) const
 
bool operator== (const char *) const
 
bool operator== (const FixedString &) const
 
bool operator== (const OD::String &) const
 
char & operator[] (int idx)
 
BufferStringquote (char q='\'')
 
BufferStringremove (char)
 
BufferStringremove (const char *s)
 
BufferStringreplace (char from, char to)
 
BufferStringreplace (const char *from, const char *to)
 
BufferStringreplaceAt (int idx, const char *, bool cutoff=true)
 
BufferStringset (const char *)
 
BufferStringset (const OD::String &s)
 
template<class T >
BufferStringset (const T &)
 
BufferStringset (double, int nrdec)
 
BufferStringset (float, int nrdec)
 
bool setBufSize (unsigned int)
 
BufferStringsetEmpty ()
 
BufferStringsetLim (double, int maxnrchars)
 
BufferStringsetLim (float, int maxnrchars)
 
void setMinBufSize (unsigned int)
 
BufferStringtoLower ()
 
BufferStringtoUpper ()
 
BufferStringtrimBlanks ()
 removes front and back whitespaces More...
 
BufferStringunEmbed (char open, char close)
 
BufferStringunQuote (char q='\'')
 
- Public Member Functions inherited from OD::String
virtual ~String ()
 
const char * buf () const
 
bool contains (char) const
 
bool contains (const char *) const
 
unsigned int count (char) const
 
bool endsWith (const char *, CaseSensitivity c=CaseSensitive) const
 
const char * find (char) const
 
const char * find (const char *) const
 
const char * findLast (char) const
 
const char * findLast (const char *) const
 
virtual char firstChar () const
 
unsigned int getLevenshteinDist (const char *, bool casesens) const
 
bool isEmpty () const
 
bool isEndOf (const char *, CaseSensitivity c=CaseSensitive) const
 
bool isEqual (const char *, CaseSensitivity c=CaseSensitive) const
 
bool isNumber (bool int_only=false) const
 
bool isStartOf (const char *, CaseSensitivity c=CaseSensitive) const
 
bool isYesNo () const
 
virtual char lastChar () const
 
bool matches (const char *, CaseSensitivity c=CaseSensitive) const
 
 operator const char * () const
 
bool operator!= (const char *) const
 
bool operator!= (const String &) const
 
template<class T >
bool operator!= (const T &t) const
 
bool operator< (const char *) const
 
bool operator< (const String &) const
 
template<class T >
bool operator< (const T &) const
 
bool operator== (const char *) const
 
bool operator== (const String &) const
 
template<class T >
bool operator== (const T &) const
 
bool operator> (const char *) const
 
bool operator> (const String &) const
 
template<class T >
bool operator> (const T &) const
 
const char & operator[] (int idx) const
 
unsigned int size () const
 
bool startsWith (const char *, CaseSensitivity c=CaseSensitive) const
 
const char * str () const
 
bool toBool () const
 
double toDouble () const
 
float toFloat () const
 
int toInt () const
 
uint64_t toUInt64 () const
 

Static Public Member Functions

static const char * sKeyDefAttrib ()
 
- Static Public Member Functions inherited from BufferString
static const BufferStringempty ()
 
- Static Public Member Functions inherited from OD::String
static const Stringempty ()
 

Additional Inherited Members

- Public Types inherited from BufferString
enum  CleanType {
  OnlyAlphaNum , AllowDots , NoSpaces , NoFileSeps ,
  NoSpecialChars
}
 
- Protected Member Functions inherited from BufferString
BufferStringassignTo (const char *)
 
const char * gtBuf () const
 
const char * gtStr () const
 
- Protected Attributes inherited from BufferString
char * buf_
 
unsigned int len_
 
const unsigned int minlen_
 

Detailed Description

Key for a line in a line set.

<>

Constructor & Destructor Documentation

◆ LineKey() [1/3]

LineKey::LineKey ( const char *  lk = 0)
inline

◆ LineKey() [2/3]

LineKey::LineKey ( const char *  ,
const char *  attrnm 
)

◆ LineKey() [3/3]

LineKey::LineKey ( const IOPar iop,
bool  liin 
)
inline

Member Function Documentation

◆ attrName()

BufferString LineKey::attrName ( ) const

◆ fillPar()

void LineKey::fillPar ( IOPar ,
bool  linename_is_iopar_name 
) const

◆ lineName()

BufferString LineKey::lineName ( ) const

◆ operator==() [1/2]

bool LineKey::operator== ( const char *  lk) const
inline

◆ operator==() [2/2]

bool LineKey::operator== ( const LineKey ) const

◆ setAttrName()

void LineKey::setAttrName ( const char *  anm)
inline

◆ setLineName()

void LineKey::setLineName ( const char *  lnm)
inline

◆ sKeyDefAttrib()

static const char* LineKey::sKeyDefAttrib ( )
inlinestatic

◆ usePar()

bool LineKey::usePar ( const IOPar ,
bool  linename_is_iopar_name 
)

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