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

Member Function Documentation

BufferString LineKey::attrName ( ) const
void LineKey::fillPar ( IOPar ,
bool  linename_is_iopar_name 
) const
BufferString LineKey::lineName ( ) const
bool LineKey::operator== ( const LineKey ) const
bool LineKey::operator== ( const char *  lk) const
inline
void LineKey::setAttrName ( const char *  anm)
inline
void LineKey::setLineName ( const char *  lnm)
inline
static const char* LineKey::sKeyDefAttrib ( )
inlinestatic
bool LineKey::usePar ( const IOPar ,
bool  linename_is_iopar_name 
)

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