41 #ifndef OBJECTS_SEQEDIT_SEQEDIT_CMD_REPLACEANNOT_BASE_HPP
42 #define OBJECTS_SEQEDIT_SEQEDIT_CMD_REPLACEANNOT_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
149 bool IsSetOvalue(
void)
const;
156 bool CanGetOvalue(
void)
const;
159 void ResetOvalue(
void);
165 const TOvalue& GetOvalue(
void)
const;
187 bool IsSetNvalue(
void)
const;
194 bool CanGetNvalue(
void)
const;
197 void ResetNvalue(
void);
203 const TNvalue& GetNvalue(
void)
const;
271 bool IsSetOvalue(
void)
const;
278 bool CanGetOvalue(
void)
const;
281 void ResetOvalue(
void);
287 const TOvalue& GetOvalue(
void)
const;
309 bool IsSetNvalue(
void)
const;
316 bool CanGetNvalue(
void)
const;
319 void ResetNvalue(
void);
325 const TNvalue& GetNvalue(
void)
const;
393 bool IsSetOvalue(
void)
const;
400 bool CanGetOvalue(
void)
const;
403 void ResetOvalue(
void);
409 const TOvalue& GetOvalue(
void)
const;
431 bool IsSetNvalue(
void)
const;
438 bool CanGetNvalue(
void)
const;
441 void ResetNvalue(
void);
447 const TNvalue& GetNvalue(
void)
const;
492 void ResetSelection(
void);
498 E_Choice Which(
void)
const;
504 void CheckSelected(E_Choice index)
const;
510 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
518 static string SelectionName(E_Choice index);
550 bool IsFeat(
void)
const;
556 const TFeat& GetFeat(
void)
const;
562 TFeat& SetFeat(
void);
576 bool IsAlign(
void)
const;
582 const TAlign& GetAlign(
void)
const;
602 bool IsGraph(
void)
const;
608 const TGraph& GetGraph(
void)
const;
631 static const char*
const sm_SelectionNames[];
662 bool IsSetId(
void)
const;
669 bool CanGetId(
void)
const;
700 bool IsSetName(
void)
const;
707 bool CanGetName(
void)
const;
710 void ResetName(
void);
716 const TName& GetName(
void)
const;
729 TName& SetName(
void);
739 bool IsSetNamed(
void)
const;
746 bool CanGetNamed(
void)
const;
749 void ResetNamed(
void);
755 TNamed GetNamed(
void)
const;
776 bool IsSetData(
void)
const;
783 bool CanGetData(
void)
const;
786 void ResetData(
void);
792 const TData& GetData(
void)
const;
804 TData& SetData(
void);
807 virtual void Reset(
void);
848 const_cast<C_Feat*
>(
this)->ResetOvalue();
865 return m_Nvalue.NotEmpty();
878 const_cast<C_Feat*
>(
this)->ResetNvalue();
895 return m_Ovalue.NotEmpty();
908 const_cast<C_Align*
>(
this)->ResetOvalue();
925 return m_Nvalue.NotEmpty();
938 const_cast<C_Align*
>(
this)->ResetNvalue();
955 return m_Ovalue.NotEmpty();
968 const_cast<C_Graph*
>(
this)->ResetOvalue();
985 return m_Nvalue.NotEmpty();
998 const_cast<C_Graph*
>(
this)->ResetNvalue();
1062 return m_Id.NotEmpty();
1120 m_Name = std::forward<CSeqEdit_Cmd_ReplaceAnnot_Base::TName>(
value);
Replace an annotation object of a bioseq or a bioseq-set.
namespace ncbi::objects::
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
static string UnassignedString(void)
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
bool NotEmpty(void) const THROWS_NONE
Check if CRef is not empty – pointing to an object and has a non-null value.
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_SEQEDIT_EXPORT
bool CanGetNvalue(void) const
Check if it is safe to call GetNvalue method.
bool CanGetOvalue(void) const
Check if it is safe to call GetOvalue method.
const TNvalue & GetNvalue(void) const
Get the Nvalue member data.
void ResetNamed(void)
Reset Named data member.
NCBI_NS_NCBI::CSerialObject * m_object
bool CanGetNvalue(void) const
Check if it is safe to call GetNvalue method.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
CSeqEdit_Cmd_ReplaceAnnot_Base & operator=(const CSeqEdit_Cmd_ReplaceAnnot_Base &)
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
const TOvalue & GetOvalue(void) const
Get the Ovalue member data.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
DECLARE_INTERNAL_TYPE_INFO()
void ResetId(void)
Reset Id data member.
TOvalue & SetOvalue(void)
Assign a value to Ovalue data member.
bool IsAlign(void) const
Check if variant Align is selected.
void ResetData(void)
Reset Data data member.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
const TId & GetId(void) const
Get the Id member data.
E_Choice Which(void) const
Which variant is currently selected.
TNvalue & SetNvalue(void)
Assign a value to Nvalue data member.
bool CanGetId(void) const
Check if it is safe to call GetId method.
bool CanGetNvalue(void) const
Check if it is safe to call GetNvalue method.
const TOvalue & GetOvalue(void) const
Get the Ovalue member data.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TNamed GetNamed(void) const
Get the Named member data.
bool IsSetName(void) const
Annotation's name Check if a value has been assigned to Name data member.
bool IsSetNvalue(void) const
new value Check if a value has been assigned to Nvalue data member.
TNamed & SetNamed(void)
Assign a value to Named data member.
DECLARE_INTERNAL_TYPE_INFO()
const TNvalue & GetNvalue(void) const
Get the Nvalue member data.
bool IsGraph(void) const
Check if variant Graph is selected.
CSeqEdit_Cmd_ReplaceAnnot_Base(const CSeqEdit_Cmd_ReplaceAnnot_Base &)
bool IsSetId(void) const
Bioseq or Bioseq_set id Check if a value has been assigned to Id data member.
DECLARE_INTERNAL_TYPE_INFO()
C_Data & operator=(const C_Data &)
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
C_Align & operator=(const C_Align &)
bool IsSetOvalue(void) const
old value Check if a value has been assigned to Ovalue data member.
DECLARE_INTERNAL_TYPE_INFO()
DECLARE_INTERNAL_TYPE_INFO()
TNvalue & SetNvalue(void)
Assign a value to Nvalue data member.
bool CanGetData(void) const
Check if it is safe to call GetData method.
bool CanGetName(void) const
Check if it is safe to call GetName method.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
bool IsFeat(void) const
Check if variant Feat is selected.
bool CanGetOvalue(void) const
Check if it is safe to call GetOvalue method.
TName & SetName(void)
Assign a value to Name data member.
const TNvalue & GetNvalue(void) const
Get the Nvalue member data.
C_Graph & operator=(const C_Graph &)
bool IsSetOvalue(void) const
old value Check if a value has been assigned to Ovalue data member.
bool IsSetData(void) const
Check if a value has been assigned to Data data member.
TOvalue & SetOvalue(void)
Assign a value to Ovalue data member.
Tparent::CMemberIndex< E_memberIndex, 5 > TmemberIndex
const TOvalue & GetOvalue(void) const
Get the Ovalue member data.
bool IsSetOvalue(void) const
old value Check if a value has been assigned to Ovalue data member.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
TId & SetId(void)
Assign a value to Id data member.
bool IsSetNamed(void) const
TRUE if an annotation is named Check if a value has been assigned to Named data member.
const TData & GetData(void) const
Get the Data member data.
TData & SetData(void)
Assign a value to Data data member.
bool CanGetNamed(void) const
Check if it is safe to call GetNamed method.
const TName & GetName(void) const
Get the Name member data.
TOvalue & SetOvalue(void)
Assign a value to Ovalue data member.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
bool CanGetOvalue(void) const
Check if it is safe to call GetOvalue method.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool IsSetNvalue(void) const
new value Check if a value has been assigned to Nvalue data member.
TNvalue & SetNvalue(void)
Assign a value to Nvalue data member.
bool IsSetNvalue(void) const
new value Check if a value has been assigned to Nvalue data member.
C_Feat & operator=(const C_Feat &)
@ e_not_set
No variant selected.