85 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
90 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
102 info->CodeVersion(22301);
103 info->DataSpec(ncbi::EDataSpec::eASN);
161 info->CodeVersion(22301);
162 info->DataSpec(ncbi::EDataSpec::eASN);
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("Score", CScore)
BEGIN_NAMED_CHOICE_INFO("", CScore_Base::C_Value)
#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 ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
#define SET_CLASS_MODULE(ModuleName)
#define ADD_NAMED_STD_CHOICE_VARIANT(MemberAlias, MemberName)
#define SET_INTERNAL_NAME(OwnerName, MemberName)
#define SET_CHOICE_MODULE(ModuleName)
virtual void DoNotDeleteThisObject(void)
Mark this object as not allocated in heap – do not delete this object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
virtual void Reset(void)
Reset the whole object.
void ResetId(void)
Reset Id data member.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
void Reset(void)
Reset the whole object.
TId & SetId(void)
Assign a value to Id data member.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
virtual ~CScore_Base(void)
static const char *const sm_SelectionNames[]
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
void ResetValue(void)
Reset Value data member.
virtual void DoNotDeleteThisObject(void)
Mark this object as not allocated in heap – do not delete this object.
@ e_not_set
No variant selected.