1 #ifndef ENUMVALUES__HPP
2 #define ENUMVALUES__HPP
54 typedef list< pair<string, TEnumValueType> >
TValues;
68 const string& GetName(
void)
const;
86 const string& GetInternalName(
void)
const;
88 const string& GetInternalModuleName(
void)
const;
93 const string& GetAccessName(
void)
const;
95 const string& GetAccessModuleName(
void)
const;
138 const TNameToValue& NameToValue(
void)
const;
140 const TValueToName& ValueToName(
void)
const;
142 void ClearIndexes(
void);
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
Include a standard set of the NCBI C++ Toolkit most basic headers.
map< CTempString, TEnumValueType, PQuickStringLess > TNameToValue
list< pair< string, TEnumValueType > > TValues
bool IsInternal(void) const
Check if this enum describes internal unnamed type.
bool IsBitset(void) const
atomic< TValueToName * > m_ValueToName
const TValues & GetValues(void) const
Get the list of name-value pairs.
unsigned int TValueFlags
Binary OR of EValueFlags.
void SetBitset(bool bitset=true)
map< TEnumValueType, const string * > TValueToName
map< TEnumValueType, TValueFlags > m_ValueFlags
bool IsInteger(void) const
Check whether the type is defined as INTEGER in ASN.1 spec.
atomic< TNameToValue * > m_NameToValue
void SetModuleName(CTypeInfo *info, const char *name)
void SetInternalName(CTypeInfo *info, const char *owner_name, const char *member_name=0)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_XSERIAL_EXPORT
static const string & GetModuleName(const char *moduleName)