MongoType
MongoDB Collection Data Dump with BSON Types
|
#include <Parameters.hpp>
Map enumeration integers to their string equivalents.
Definition at line 68 of file Parameters.hpp.
Public Member Functions | |
EnumMapper () | |
void | insert (const char *key, E value) |
E | find (string &s, E defValue) |
Private Types | |
typedef map< string, E > | EnumMap |
typedef EnumMap::value_type | EnumMapValue |
Private Attributes | |
EnumMap | enumMap |
|
private |
Definition at line 69 of file Parameters.hpp.
|
private |
Definition at line 70 of file Parameters.hpp.
|
inline |
Definition at line 75 of file Parameters.hpp.
|
inline |
Look up the enumeration value corresponding to the input string in the associative array. and return its enumeration value, or the default value if it is not found.
[in] | s | The key string. |
[in] | defValue | The default enumeration value. |
Definition at line 88 of file Parameters.hpp.
References mongotype::EnumMapper< E >::enumMap.
|
inline |
Insert an string key and its corresponding enumeration value to the internal associative array.
[in] | key | The key string. |
[in] | value | The enumeration value. |
Definition at line 81 of file Parameters.hpp.
References mongotype::EnumMapper< E >::enumMap.
|
private |
Definition at line 72 of file Parameters.hpp.
Referenced by mongotype::EnumMapper< E >::find(), and mongotype::EnumMapper< E >::insert().