41 #ifndef OBJECTS_SEQ_SEQDESC_BASE_HPP
42 #define OBJECTS_SEQ_SEQDESC_BASE_HPP
57 #ifndef BEGIN_objects_SCOPE
58 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
59 # define END_objects_SCOPE END_SCOPE(objects)
143 virtual void Reset(
void);
146 virtual void ResetSelection(
void);
152 E_Choice Which(
void)
const;
158 void CheckSelected(E_Choice index)
const;
164 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
172 static string SelectionName(E_Choice index);
226 bool IsMol_type(
void)
const;
253 bool IsModif(
void)
const;
259 const TModif& GetModif(
void)
const;
274 bool IsMethod(
void)
const;
301 bool IsName(
void)
const;
307 const TName& GetName(
void)
const;
313 TName& SetName(
void);
328 bool IsTitle(
void)
const;
355 bool IsOrg(
void)
const;
361 const TOrg& GetOrg(
void)
const;
381 bool IsComment(
void)
const;
387 const TComment& GetComment(
void)
const;
408 bool IsNum(
void)
const;
414 const TNum& GetNum(
void)
const;
434 bool IsMaploc(
void)
const;
440 const TMaploc& GetMaploc(
void)
const;
460 bool IsPir(
void)
const;
466 const TPir& GetPir(
void)
const;
486 bool IsGenbank(
void)
const;
492 const TGenbank& GetGenbank(
void)
const;
512 bool IsPub(
void)
const;
518 const TPub& GetPub(
void)
const;
538 bool IsRegion(
void)
const;
544 const TRegion& GetRegion(
void)
const;
565 bool IsUser(
void)
const;
571 const TUser& GetUser(
void)
const;
577 TUser& SetUser(
void);
591 bool IsSp(
void)
const;
597 const TSp& GetSp(
void)
const;
617 bool IsDbxref(
void)
const;
623 const TDbxref& GetDbxref(
void)
const;
643 bool IsEmbl(
void)
const;
649 const TEmbl& GetEmbl(
void)
const;
655 TEmbl& SetEmbl(
void);
669 bool IsCreate_date(
void)
const;
695 bool IsUpdate_date(
void)
const;
721 bool IsPrf(
void)
const;
727 const TPrf& GetPrf(
void)
const;
747 bool IsPdb(
void)
const;
753 const TPdb& GetPdb(
void)
const;
773 bool IsHet(
void)
const;
779 const THet& GetHet(
void)
const;
800 bool IsSource(
void)
const;
806 const TSource& GetSource(
void)
const;
826 bool IsMolinfo(
void)
const;
832 const TMolinfo& GetMolinfo(
void)
const;
852 bool IsModelev(
void)
const;
858 const TModelev& GetModelev(
void)
const;
881 static const char*
const sm_SelectionNames[];
887 NCBI_NS_NCBI::CUnionBuffer<THet>
m_Het;
888 NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string>
m_string;
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
@Pubdesc.hpp User-defined methods of the data storage class.
Base class for all serializable objects.
NCBI_XOBJUTIL_EXPORT string GetTitle(const CBioseq_Handle &hnd, TGetTitleFlags flags=0)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
NCBI_NS_NCBI::CSerialObject * m_object
TModif & SetModif(void)
Select the variant.
CSeqdesc_Base & operator=(const CSeqdesc_Base &)
bool IsGenbank(void) const
Check if variant Genbank is selected.
CSeqdesc_Base(const CSeqdesc_Base &)
bool IsDbxref(void) const
Check if variant Dbxref is selected.
EGIBB_method
sequencing methods
const THet & GetHet(void) const
Get the variant data.
TMethod & SetMethod(void)
Select the variant.
bool IsModelev(void) const
Check if variant Modelev is selected.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
THet & SetHet(void)
Select the variant.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
DECLARE_INTERNAL_TYPE_INFO()
bool IsEmbl(void) const
Check if variant Embl is selected.
bool IsMolinfo(void) const
Check if variant Molinfo is selected.
bool IsMaploc(void) const
Check if variant Maploc is selected.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TTitle & SetTitle(void)
Select the variant.
bool IsHet(void) const
Check if variant Het is selected.
TMol_type & SetMol_type(void)
Select the variant.
bool IsOrg(void) const
Check if variant Org is selected.
bool IsUpdate_date(void) const
Check if variant Update_date is selected.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
NCBI_NS_NCBI::CUnionBuffer< TModif > m_Modif
bool IsComment(void) const
Check if variant Comment is selected.
const TTitle & GetTitle(void) const
Get the variant data.
bool IsSource(void) const
Check if variant Source is selected.
bool IsMol_type(void) const
Check if variant Mol_type is selected.
TMethod GetMethod(void) const
Get the variant data.
CModelEvidenceSupport TModelev
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
NCBI_NS_NCBI::CUnionBuffer< TModif > m_Modif
bool IsModif(void) const
Check if variant Modif is selected.
bool IsMethod(void) const
Check if variant Method is selected.
NCBI_NS_NCBI::CUnionBuffer< THet > m_Het
bool IsCreate_date(void) const
Check if variant Create_date is selected.
TName & SetName(void)
Select the variant.
bool IsPrf(void) const
Check if variant Prf is selected.
bool IsName(void) const
Check if variant Name is selected.
TComment & SetComment(void)
Select the variant.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsPir(void) const
Check if variant Pir is selected.
TMol_type GetMol_type(void) const
Get the variant data.
bool IsPub(void) const
Check if variant Pub is selected.
const TModif & GetModif(void) const
Get the variant data.
NCBI_NS_NCBI::CUnionBuffer< THet > m_Het
E_Choice Which(void) const
Which variant is currently selected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
bool IsTitle(void) const
Check if variant Title is selected.
bool IsNum(void) const
Check if variant Num is selected.
EGIBB_mol
type of molecule represented
bool IsSp(void) const
Check if variant Sp is selected.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
const TComment & GetComment(void) const
Get the variant data.
bool IsRegion(void) const
Check if variant Region is selected.
const TName & GetName(void) const
Get the variant data.
const TRegion & GetRegion(void) const
Get the variant data.
bool IsUser(void) const
Check if variant User is selected.
TRegion & SetRegion(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
bool IsPdb(void) const
Check if variant Pdb is selected.
@ e_Embl
EMBL specific information.
@ e_Het
cofactor, etc associated but not bound
@ e_Org
if all from one organism
@ e_Num
a numbering system
@ e_User
user defined object
@ e_Update_date
date of last update
@ e_Pub
a reference to the publication
@ e_Pir
PIR specific info.
@ e_Genbank
GenBank specific info.
@ e_Prf
PRF specific information.
@ e_Mol_type
type of molecule
@ e_Sp
SWISSPROT specific info.
@ e_Dbxref
xref to other databases
@ e_Comment
a more extensive comment
@ e_Method
sequencing method
@ e_Modelev
model evidence for XM records
@ e_Region
overall region (globin locus)
@ e_Molinfo
info on the molecule and techniques
@ e_Maploc
map location of this sequence
@ e_Create_date
date entry first created/released
@ e_Title
a title for this sequence
@ e_Pdb
PDB specific information.
@ e_not_set
No variant selected.
@ e_Name
a name for this sequence
@ e_Source
source of materials, includes Org-ref
const GenericPointer< typename T::ValueType > T2 value
void SetDbxref(objects::CBioSource &src, string db, objects::CObject_id::TId id)
static void SetTitle(CRef< CSeq_entry > entry, string title)