31 { impl_ = s;
return *
this;}
34 {
return impl_ == s; }
36 {
return impl_ == oth.
impl_; }
38 {
return impl_ != s; }
40 {
return impl_ != u.
impl_; }
42 inline bool isEmpty()
const {
return impl_.isEmpty();}
43 inline char*
getCStr() {
return impl_.getCStr(); }
44 inline operator const char*()
const 47 IdxType nrKeys()
const;
49 void setKey(IdxType,
const char*);
56 char* fromKey(IdxType)
const;
57 const char* getKeyPart(IdxType)
const;
59 virtual const char*
gtBuf()
const {
return impl_.
buf(); }
60 virtual const char*
gtStr()
const {
return impl_.
str(); }
64 char* fetchKeyPart(IdxType,
bool)
const;
#define mExpClass(module)
Definition: commondefs.h:157
virtual const char * gtStr() const
Definition: compoundkey.h:60
const char * str() const
Definition: odstring.h:46
bool operator==(const CompoundKey &oth) const
Definition: compoundkey.h:35
CompoundKey & operator=(const char *s)
Definition: compoundkey.h:30
virtual const char * gtBuf() const
Definition: compoundkey.h:59
char * getCStr()
Definition: compoundkey.h:43
int IdxType
Definition: compoundkey.h:25
CompoundKey(const CompoundKey &ck)
Definition: compoundkey.h:28
bool isEmpty() const
Definition: compoundkey.h:42
const char * buf() const
Definition: odstring.h:45
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
bool isEmpty() const
Definition: odstring.h:49
Concatenated short keys separated by dots. Used for Object identifiers in the Object Manager...
Definition: compoundkey.h:21
bool operator==(const char *s) const
Definition: compoundkey.h:33
OpendTect.
Definition: commontypes.h:25
CompoundKey(const char *s=0)
Definition: compoundkey.h:27
CompoundKey & operator+=(const char *)
Definition: compoundkey.h:69
void setEmpty()
Definition: compoundkey.h:41
BufferString impl_
Definition: compoundkey.h:55
bool operator!=(const char *s) const
Definition: compoundkey.h:37
bool operator!=(const CompoundKey &u) const
Definition: compoundkey.h:39