41 #ifndef OBJECTS_SEQ_SEQ_HIST_BASE_HPP
42 #define OBJECTS_SEQ_SEQ_HIST_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
127 void ResetSelection(
void);
133 E_Choice Which(
void)
const;
139 void CheckSelected(E_Choice index)
const;
145 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
153 static string SelectionName(E_Choice index);
184 bool IsBool(
void)
const;
190 TBool GetBool(
void)
const;
196 TBool& SetBool(
void);
211 bool IsDate(
void)
const;
217 const TDate& GetDate(
void)
const;
223 TDate& SetDate(
void);
240 static const char*
const sm_SelectionNames[];
274 bool IsSetAssembly(
void)
const;
281 bool CanGetAssembly(
void)
const;
284 void ResetAssembly(
void);
290 const TAssembly& GetAssembly(
void)
const;
306 bool IsSetReplaces(
void)
const;
313 bool CanGetReplaces(
void)
const;
316 void ResetReplaces(
void);
322 const TReplaces& GetReplaces(
void)
const;
344 bool IsSetReplaced_by(
void)
const;
351 bool CanGetReplaced_by(
void)
const;
354 void ResetReplaced_by(
void);
381 bool IsSetDeleted(
void)
const;
388 bool CanGetDeleted(
void)
const;
391 void ResetDeleted(
void);
397 const TDeleted& GetDeleted(
void)
const;
412 virtual void Reset(
void);
446 if ( m_choice != index )
447 ThrowInvalidSelection(index);
456 DoSelect(index, pool);
463 Select(index, reset, 0);
469 return m_choice == e_Bool;
475 CheckSelected(e_Bool);
496 return m_choice == e_Date;
*** Sequence History Record *********************************** ** assembly = records how seq was ass...
Base class for all serializable objects.
void ThrowUnassigned(TMemberIndex index) const
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.
CSeq_hist_Base(const CSeq_hist_Base &)
bool IsSetDeleted(void) const
Check if a value has been assigned to Deleted data member.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
bool IsSetReplaced_by(void) const
these seqs make this one obsolete Check if a value has been assigned to Replaced_by data member.
list< CRef< CSeq_align > > m_Assembly
list< CRef< CSeq_align > > TAssembly
bool IsSetAssembly(void) const
how was this assembled? Check if a value has been assigned to Assembly data member.
const TDeleted & GetDeleted(void) const
Get the Deleted member data.
TBool & SetBool(void)
Select the variant.
DECLARE_INTERNAL_TYPE_INFO()
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetReplaced_by(void) const
Check if it is safe to call GetReplaced_by method.
bool IsSetReplaces(void) const
seq makes these seqs obsolete Check if a value has been assigned to Replaces data member.
const TAssembly & GetAssembly(void) const
Get the Assembly member data.
CSeq_hist_rec TReplaced_by
CRef< TDeleted > m_Deleted
CRef< TReplaced_by > m_Replaced_by
CRef< TReplaces > m_Replaces
Tparent::CMemberIndex< E_memberIndex, 5 > TmemberIndex
TBool GetBool(void) const
Get the variant data.
bool CanGetReplaces(void) const
Check if it is safe to call GetReplaces method.
CSeq_hist_Base & operator=(const CSeq_hist_Base &)
bool IsDate(void) const
Check if variant Date is selected.
E_Choice Which(void) const
Which variant is currently selected.
NCBI_NS_NCBI::CSerialObject * m_object
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
const TReplaces & GetReplaces(void) const
Get the Replaces member data.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
const TReplaced_by & GetReplaced_by(void) const
Get the Replaced_by member data.
TAssembly & SetAssembly(void)
Assign a value to Assembly data member.
bool IsBool(void) const
Check if variant Bool is selected.
C_Deleted(const C_Deleted &)
bool CanGetDeleted(void) const
Check if it is safe to call GetDeleted method.
bool CanGetAssembly(void) const
Check if it is safe to call GetAssembly method.
C_Deleted & operator=(const C_Deleted &)
const GenericPointer< typename T::ValueType > T2 value