70 m_object->RemoveReference();
82 (m_object =
new(pool) ncbi::objects::CBinomialOrgName())->
AddReference();
85 (m_object =
new(pool) ncbi::objects::CMultiOrgName())->
AddReference();
88 (m_object =
new(pool) ncbi::objects::CBinomialOrgName())->
AddReference();
91 (m_object =
new(pool) ncbi::objects::CPartialOrgName())->
AddReference();
113 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
118 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
123 CheckSelected(e_Binomial);
124 return *
static_cast<const TBinomial*
>(m_object);
130 return *
static_cast<TBinomial*
>(m_object);
136 if ( m_choice != e_Binomial || m_object != ptr ) {
139 m_choice = e_Binomial;
151 CheckSelected(e_Hybrid);
152 return *
static_cast<const THybrid*
>(m_object);
158 return *
static_cast<THybrid*
>(m_object);
164 if ( m_choice != e_Hybrid || m_object != ptr ) {
173 CheckSelected(e_Namedhybrid);
186 if ( m_choice != e_Namedhybrid || m_object != ptr ) {
189 m_choice = e_Namedhybrid;
195 CheckSelected(e_Partial);
196 return *
static_cast<const TPartial*
>(m_object);
202 return *
static_cast<TPartial*
>(m_object);
208 if ( m_choice != e_Partial || m_object != ptr ) {
211 m_choice = e_Partial;
227 info->CodeVersion(22400);
228 info->DataSpec(ncbi::EDataSpec::eASN);
310 info->CodeVersion(22400);
311 info->DataSpec(ncbi::EDataSpec::eASN);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("OrgName", COrgName)
BEGIN_NAMED_CHOICE_INFO("", COrgName_Base::C_Name)
User-defined methods of the data storage class.
@OrgMod.hpp User-defined methods of the data storage class.
#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 ADD_NAMED_REF_CHOICE_VARIANT(MemberAlias, MemberName, ClassName)
#define ADD_NAMED_STD_MEMBER(MemberAlias, MemberName)
#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 AddReference(void) const
Add reference to object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void ResetDiv(void)
Reset Div data member.
void ResetMod(void)
Reset Mod data member.
void ResetAttrib(void)
Reset Attrib data member.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
void ResetMgcode(void)
Reset Mgcode data member.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
void ResetLineage(void)
Reset Lineage data member.
list< CRef< COrgMod > > m_Mod
THybrid & SetHybrid(void)
Select the variant.
TName & SetName(void)
Assign a value to Name data member.
TNamedhybrid & SetNamedhybrid(void)
Select the variant.
TVirus & SetVirus(void)
Select the variant.
const THybrid & GetHybrid(void) const
Get the variant data.
void Reset(void)
Reset the whole object.
virtual void Reset(void)
Reset the whole object.
virtual ~COrgName_Base(void)
void ResetGcode(void)
Reset Gcode data member.
const TBinomial & GetBinomial(void) const
Get the variant data.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
void ResetPgcode(void)
Reset Pgcode data member.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void ResetName(void)
Reset Name data member.
const TPartial & GetPartial(void) const
Get the variant data.
const TNamedhybrid & GetNamedhybrid(void) const
Get the variant data.
static const char *const sm_SelectionNames[]
TPartial & SetPartial(void)
Select the variant.
TBinomial & SetBinomial(void)
Select the variant.
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value