Public Types | |
| typedef int | Value |
| typedef std::map< std::string, Value > | StringToValue |
| typedef std::map< Value, std::string > | ValueToString |
Public Member Functions | |
| IntLookup (Value defaultValue) | |
| void | add (Value value, const char *str) |
| Value | getValue (const char *str) |
| const std::string & | getString (Value value) |
Public Attributes | |
| StringToValue | _stringToValue |
| ValueToString | _valueToString |
| Value | _default |
| typedef std::map<std::string, Value> osgDB::IntLookup::StringToValue |
| typedef int osgDB::IntLookup::Value |
| typedef std::map<Value, std::string> osgDB::IntLookup::ValueToString |
| osgDB::IntLookup::IntLookup | ( | Value | defaultValue | ) | [inline] |
| void osgDB::IntLookup::add | ( | Value | value, | |
| const char * | str | |||
| ) | [inline] |
References _stringToValue, and _valueToString.
Referenced by osgDB::EnumSerializer< C, P >::add().
| const std::string& osgDB::IntLookup::getString | ( | Value | value | ) | [inline] |
References _default, and _valueToString.
Referenced by osgDB::EnumSerializer< C, P >::getString().
| Value osgDB::IntLookup::getValue | ( | const char * | str | ) | [inline] |
References _default, and _stringToValue.
Referenced by osgDB::EnumSerializer< C, P >::getValue().
Referenced by getString(), and getValue().
Referenced by add(), and getValue().
Referenced by add(), and getString().
1.7.1