#include <cenum.h>
Inheritance diagram for cEnum::
Public Methods | |
Constructors, destructor, assignment. | |
cEnum (const cEnum &cenum) | |
cEnum (const char *name=NULL, int siz=17) | |
virtual | ~cEnum () |
cEnum& | operator= (const cEnum &list) |
Redefined cObject member functions. | |
virtual cObject* | dup () const |
virtual void | info (char *buf) |
Insertion and lookup. | |
void | insert (int key, const char *str) |
const char* | stringFor (int key) |
int | lookup (const char *str, int fallback=-1) |
|
Copy constructor. |
|
Constructor. |
|
Destructor. |
|
Creates and returns an exact copy of this object. See cObject for more details. Reimplemented from cObject. |
|
Produces a one-line description of object contents into the buffer passed as argument. See cObject for more details. Reimplemented from cObject. |
|
Add an item to the enum. If that numeric code exist, overwrite it. |
|
Look up string and return numeric code. If not found, return second argument (or -1). |
|
Assignment operator. The name member doesn't get copied; see cObject's operator=() for more details. |
|
Look up key and return string representation. Return NULL if not found. |