66 m_object->RemoveReference();
78 (m_object =
new(pool) ncbi::objects::CSeq_feat())->
AddReference();
81 (m_object =
new(pool) ncbi::objects::CSeq_align())->
AddReference();
84 (m_object =
new(pool) ncbi::objects::CSeq_graph())->
AddReference();
101 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
106 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
111 CheckSelected(e_Feat);
112 return *
static_cast<const TFeat*
>(m_object);
118 return *
static_cast<TFeat*
>(m_object);
124 if ( m_choice != e_Feat || m_object != ptr ) {
133 CheckSelected(e_Align);
134 return *
static_cast<const TAlign*
>(m_object);
140 return *
static_cast<TAlign*
>(m_object);
146 if ( m_choice != e_Align || m_object != ptr ) {
155 CheckSelected(e_Graph);
156 return *
static_cast<const TGraph*
>(m_object);
162 return *
static_cast<TGraph*
>(m_object);
168 if ( m_choice != e_Graph || m_object != ptr ) {
185 info->CodeVersion(22400);
186 info->DataSpec(ncbi::EDataSpec::eASN);
253 info->CodeVersion(22400);
254 info->DataSpec(ncbi::EDataSpec::eASN);
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("SeqEdit-Cmd-RemoveAnnot", CSeqEdit_Cmd_RemoveAnnot)
BEGIN_NAMED_CHOICE_INFO("", CSeqEdit_Cmd_RemoveAnnot_Base::C_Data)
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CSeqEdit_Cmd_RemoveAnnot –.
namespace ncbi::objects::
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
#define MEMBER_PTR(MemberName)
#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)
void AddReference(void) const
Add reference to object.
void Reset(void)
Reset reference object.
bool IsAllocatedInPool(void) const THROWS_NONE
Check if object is allocated in memory pool (not system heap)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void ResetNamed(void)
Reset Named data member.
void ResetName(void)
Reset Name data member.
static const char *const sm_SelectionNames[]
const TFeat & GetFeat(void) const
Get the variant data.
TAlign & SetAlign(void)
Select the variant.
CSeqEdit_Cmd_RemoveAnnot_Base(void)
TFeat & SetFeat(void)
Select the variant.
TGraph & SetGraph(void)
Select the variant.
TData & SetData(void)
Assign a value to Data data member.
void ResetId(void)
Reset Id data member.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
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 ResetData(void)
Reset Data data member.
virtual ~CSeqEdit_Cmd_RemoveAnnot_Base(void)
void Reset(void)
Reset the whole object.
virtual void Reset(void)
Reset the whole object.
const TGraph & GetGraph(void) const
Get the variant data.
const TAlign & GetAlign(void) const
Get the variant data.
TId & SetId(void)
Assign a value to Id data member.
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value