OpendTect  6.3
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
CompoundKey Class Reference

Concatenated short keys separated by dots. Used for Object identifiers in the Object Manager, or stratigraphic IDs. More...

Inheritance diagram for CompoundKey:
[legend]

Public Types

typedef int IdxType
 

Public Member Functions

 CompoundKey (const char *s=0)
 
 CompoundKey (const CompoundKey &ck)
 
CompoundKeyoperator= (const char *s)
 
CompoundKeyoperator+= (const char *)
 
bool operator== (const char *s) const
 
bool operator== (const CompoundKey &oth) const
 
bool operator!= (const char *s) const
 
bool operator!= (const CompoundKey &u) const
 
void setEmpty ()
 
bool isEmpty () const
 
char * getCStr ()
 
 operator const char * () const
 
IdxType nrKeys () const
 
BufferString key (IdxType) const
 
void setKey (IdxType, const char *)
 
CompoundKey upLevel () const
 
bool isUpLevelOf (const CompoundKey &) const
 
- 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
 
virtual char lastChar () 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
 
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
 

Protected Member Functions

char * fromKey (IdxType) const
 
const char * getKeyPart (IdxType) const
 
virtual const char * gtBuf () const
 
virtual const char * gtStr () const
 

Protected Attributes

BufferString impl_
 

Private Member Functions

char * fetchKeyPart (IdxType, bool) const
 

Additional Inherited Members

- Static Public Member Functions inherited from OD::String
static const Stringempty ()
 

Detailed Description

Concatenated short keys separated by dots. Used for Object identifiers in the Object Manager, or stratigraphic IDs.

Member Typedef Documentation

typedef int CompoundKey::IdxType

Constructor & Destructor Documentation

CompoundKey::CompoundKey ( const char *  s = 0)
inline
CompoundKey::CompoundKey ( const CompoundKey ck)
inline

Member Function Documentation

char* CompoundKey::fetchKeyPart ( IdxType  ,
bool   
) const
private
char* CompoundKey::fromKey ( IdxType  ) const
protected
char* CompoundKey::getCStr ( )
inline
const char* CompoundKey::getKeyPart ( IdxType  ) const
protected
virtual const char* CompoundKey::gtBuf ( ) const
inlineprotectedvirtual
Returns
empty even if underlying is null

Implements OD::String.

virtual const char* CompoundKey::gtStr ( ) const
inlineprotectedvirtual
Returns
null if empty

Implements OD::String.

bool CompoundKey::isEmpty ( ) const
inline
bool CompoundKey::isUpLevelOf ( const CompoundKey ) const
BufferString CompoundKey::key ( IdxType  ) const
IdxType CompoundKey::nrKeys ( ) const
CompoundKey::operator const char * ( ) const
inline
bool CompoundKey::operator!= ( const char *  s) const
inline
bool CompoundKey::operator!= ( const CompoundKey u) const
inline
CompoundKey & CompoundKey::operator+= ( const char *  s)
inline
CompoundKey& CompoundKey::operator= ( const char *  s)
inline
bool CompoundKey::operator== ( const char *  s) const
inline
bool CompoundKey::operator== ( const CompoundKey oth) const
inline
void CompoundKey::setEmpty ( )
inline
void CompoundKey::setKey ( IdxType  ,
const char *   
)
CompoundKey CompoundKey::upLevel ( ) const

Member Data Documentation

BufferString CompoundKey::impl_
protected

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