88 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
93 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
117 info->CodeVersion(22400);
118 info->DataSpec(ncbi::EDataSpec::eDTD);
146 info->CodeVersion(22400);
147 info->DataSpec(ncbi::EDataSpec::eDTD);
User-defined methods of the data storage class.
BEGIN_NAMED_CHOICE_INFO("", CSpelledQuery_Base::C_Data)
BEGIN_NAMED_BASE_IMPLICIT_CLASS_INFO("SpelledQuery", CSpelledQuery)
#define BEGIN_espell_SCOPE
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
#define MEMBER_PTR(MemberName)
#define ADD_NAMED_MEMBER(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
#define SET_CLASS_MODULE(ModuleName)
#define SET_INTERNAL_NAME(OwnerName, MemberName)
#define SET_CHOICE_MODULE(ModuleName)
#define ADD_NAMED_BUF_CHOICE_VARIANT(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void Reset(void)
Reset data member.
static const char *const sm_SelectionNames[]
TReplaced & SetReplaced(void)
Select the variant.
NCBI_NS_STD::string TOriginal
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_Data > > m_data
TOriginal & SetOriginal(void)
Select the variant.
void DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool *pool=0)
NCBI_NS_STD::string TReplaced
void ResetSelection(void)
Reset the selection (set it to e_not_set).
virtual ~CSpelledQuery_Base(void)
void Reset(void)
Reset the whole object.
static NCBI_NS_STD::string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value