Public Member Functions | Protected Member Functions | Protected Attributes | Friends

CompoundKey Class Reference

Concatenated short keys separated by dots. More...

Inheritance diagram for CompoundKey:
MultiID

List of all members.

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 &u) const
bool operator!= (const char *s) const
bool operator!= (const CompoundKey &u) const
void setEmpty ()
bool isEmpty () const
char * buf ()
const char * buf () const
 operator const char * () const
int nrKeys () const
BufferString key (int) const
void setKey (int, const char *)
CompoundKey upLevel () const
bool isUpLevelOf (const CompoundKey &) const
virtual bool matchGE (const char *) const

Protected Member Functions

char * fromKey (int, bool cptobuf=false) const

Protected Attributes

BufferString id_

Friends

std::istream & operator>> (std::istream &, CompoundKey &)

Detailed Description

Concatenated short keys separated by dots.

Usage is for Object identifiers in the Object Manager, or UnitIDs.

A Compound Key Glob Expression is a string used for matching. It is similar to a UNIX-type glob expression.


Constructor & Destructor Documentation

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

Member Function Documentation

char* CompoundKey::buf (  )  [inline]
const char* CompoundKey::buf (  )  const [inline]
char* CompoundKey::fromKey ( int  ,
bool  cptobuf = false 
) const [protected]
bool CompoundKey::isEmpty (  )  const [inline]
bool CompoundKey::isUpLevelOf ( const CompoundKey  )  const
BufferString CompoundKey::key ( int   )  const
virtual bool CompoundKey::matchGE ( const char *   )  const [virtual]
int 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]

Reimplemented in MultiID.

bool CompoundKey::operator== ( const CompoundKey u  )  const [inline]
bool CompoundKey::operator== ( const char *  s  )  const [inline]

Reimplemented in MultiID.

void CompoundKey::setEmpty (  )  [inline]
void CompoundKey::setKey ( int  ,
const char *   
)
CompoundKey CompoundKey::upLevel (  )  const

Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  ,
CompoundKey  
) [friend]

Member Data Documentation