enum_t Class ReferenceImplements MySQL ENUM datatype. More...
Collaboration diagram for enum_t:
Detailed DescriptionImplements MySQL ENUM datatype.
Definition at line 48 of file enum_t.h. Constructor & Destructor Documentation
Definition at line 40 of file enum_t.cpp. References m_vmap. 00040 : m_mmap(ref), m_value(0) 00041 { 00042 for (std::map<std::string, uint64_t>::iterator it = ref.begin(); it != ref.end(); it++) 00043 { 00044 std::string str = (*it).first; 00045 uint64_t value = (*it).second; 00046 m_vmap[value] = str; 00047 } 00048 }
Member Function Documentation
Definition at line 63 of file enum_t.cpp. References m_mmap, m_value, and m_vmap. Referenced by c_str(). 00064 { 00065 if (m_vmap.size() != m_mmap.size()) 00066 { 00067 for (std::map<std::string, uint64_t>::iterator it = m_mmap.begin(); it != m_mmap.end(); it++) 00068 { 00069 std::string str = (*it).first; 00070 uint64_t value = (*it).second; 00071 m_vmap[value] = str; 00072 } 00073 } 00074 return m_vmap[m_value]; 00075 }
Definition at line 98 of file enum_t.cpp. References String(). Referenced by operator!=(), and operator==(). 00099 { 00100 return String().c_str(); 00101 }
Definition at line 84 of file enum_t.cpp. References c_str(). 00085 { 00086 if (!strcasecmp(c_str(), str.c_str())) 00087 return true; 00088 return false; 00089 }
Definition at line 92 of file enum_t.cpp. References m_value. 00093 { 00094 return m_value == s; 00095 }
Definition at line 104 of file enum_t.cpp. References c_str(). 00105 { 00106 if (!strcasecmp(c_str(), str.c_str())) 00107 return !true; 00108 return !false; 00109 }
Member Data Documentation
Definition at line 66 of file enum_t.h. Referenced by operator=(), operator==(), String(), and Value().
The documentation for this class was generated from the following files: |