Purpose:
|
Defines objects for storing the mapping between the enum values and their string representation.
|
|
Derivation:
|
enum_table : ACIS_OBJECT : -
|
|
Filename:
|
base/baseutil/mmgr/enum_tbl.hxx
|
|
Description:
|
An enumeration table stores a mapping between the enum values and their string representation. The mapping is used when writing enumerated values to a sat file in their string representation, or when reading strings from a SAT file that need to be converted back to enumerated values.
|
|
Constructor:
|
public: enum_table::enum_table
(
|
|
|
const enum_entry *ent
|
// initialization value
|
|
|
);
|
|
|
C++ constructor, creates an
enum_table object and initializes it with the specified enum entry.
|
|
|
|
Methods:
|
public: char const* enum_table::string
(
|
|
|
int value
|
// input value
|
|
|
) const;
|
|
|
Return string corresponding to given value. If no match, returns
NULL.
|
|
|
|
|
|
|
public: int enum_table::value
(
|
|
|
char const *string
|
// input string
|
|
|
) const;
|
|
|
Return value corresponding to given string. If no match, value in terminating entry (generally -9999) is returned.
|