41 #ifndef OBJECTS_SEQFEAT_SEQ_FEAT_BASE_HPP
42 #define OBJECTS_SEQFEAT_SEQ_FEAT_BASE_HPP
54 #ifndef BEGIN_objects_SCOPE
55 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
56 # define END_objects_SCOPE END_SCOPE(objects)
102 eExp_ev_experimental = 1,
103 eExp_ev_not_experimental = 2
117 typedef vector< CRef< CGb_qual > >
TQual;
122 typedef vector< CRef< CSeqFeatXref > >
TXref;
126 typedef list< CRef< CFeat_id > >
TIds;
127 typedef list< CRef< CUser_object > >
TExts;
165 bool IsSetId(
void)
const;
172 bool CanGetId(
void)
const;
203 bool IsSetData(
void)
const;
210 bool CanGetData(
void)
const;
213 void ResetData(
void);
219 const TData& GetData(
void)
const;
231 TData& SetData(
void);
241 bool IsSetPartial(
void)
const;
248 bool CanGetPartial(
void)
const;
251 void ResetPartial(
void);
279 bool IsSetExcept(
void)
const;
286 bool CanGetExcept(
void)
const;
289 void ResetExcept(
void);
316 bool IsSetComment(
void)
const;
323 bool CanGetComment(
void)
const;
326 void ResetComment(
void);
332 const TComment& GetComment(
void)
const;
355 bool IsSetProduct(
void)
const;
362 bool CanGetProduct(
void)
const;
365 void ResetProduct(
void);
393 bool IsSetLocation(
void)
const;
400 bool CanGetLocation(
void)
const;
403 void ResetLocation(
void);
409 const TLocation& GetLocation(
void)
const;
431 bool IsSetQual(
void)
const;
438 bool CanGetQual(
void)
const;
441 void ResetQual(
void);
447 const TQual& GetQual(
void)
const;
453 TQual& SetQual(
void);
463 bool IsSetTitle(
void)
const;
470 bool CanGetTitle(
void)
const;
473 void ResetTitle(
void);
502 bool IsSetExt(
void)
const;
509 bool CanGetExt(
void)
const;
518 const TExt& GetExt(
void)
const;
540 bool IsSetCit(
void)
const;
547 bool CanGetCit(
void)
const;
556 const TCit& GetCit(
void)
const;
577 bool IsSetExp_ev(
void)
const;
584 bool CanGetExp_ev(
void)
const;
587 void ResetExp_ev(
void);
615 bool IsSetXref(
void)
const;
622 bool CanGetXref(
void)
const;
625 void ResetXref(
void);
631 const TXref& GetXref(
void)
const;
637 TXref& SetXref(
void);
647 bool IsSetDbxref(
void)
const;
654 bool CanGetDbxref(
void)
const;
657 void ResetDbxref(
void);
663 const TDbxref& GetDbxref(
void)
const;
679 bool IsSetPseudo(
void)
const;
686 bool CanGetPseudo(
void)
const;
689 void ResetPseudo(
void);
717 bool IsSetExcept_text(
void)
const;
724 bool CanGetExcept_text(
void)
const;
727 void ResetExcept_text(
void);
756 bool IsSetIds(
void)
const;
763 bool CanGetIds(
void)
const;
788 bool IsSetExts(
void)
const;
795 bool CanGetExts(
void)
const;
798 void ResetExts(
void);
804 const TExts& GetExts(
void)
const;
810 TExts& SetExts(
void);
820 bool IsSetSupport(
void)
const;
827 bool CanGetSupport(
void)
const;
830 void ResetSupport(
void);
836 const TSupport& GetSupport(
void)
const;
851 virtual void Reset(
void);
894 return m_Id.NotEmpty();
1209 return m_Ext.NotEmpty();
1230 return m_Cit.NotEmpty();
@Gb_qual.hpp User-defined methods of the data storage class.
*** Seq-feat ******************************************* * sequence feature generalization
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
#define ENUM_METHOD_NAME(EnumName)
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,...
NCBI_XOBJUTIL_EXPORT string GetTitle(const CBioseq_Handle &hnd, TGetTitleFlags flags=0)
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_SEQFEAT_EXPORT
bool IsSetTitle(void) const
for user defined label Check if a value has been assigned to Title data member.
bool CanGetDbxref(void) const
Check if it is safe to call GetDbxref method.
bool CanGetExp_ev(void) const
Check if it is safe to call GetExp_ev method.
bool CanGetExts(void) const
Check if it is safe to call GetExts method.
TXref & SetXref(void)
Assign a value to Xref data member.
bool IsSetComment(void) const
Check if a value has been assigned to Comment data member.
bool CanGetCit(void) const
Check if it is safe to call GetCit method.
bool CanGetSupport(void) const
Check if it is safe to call GetSupport method.
vector< CRef< CDbtag > > TDbxref
TDbxref & SetDbxref(void)
Assign a value to Dbxref data member.
void ResetPartial(void)
Reset Partial data member.
bool CanGetXref(void) const
Check if it is safe to call GetXref method.
TPartial & SetPartial(void)
Assign a value to Partial data member.
bool IsSetData(void) const
the specific data Check if a value has been assigned to Data data member.
bool IsSetQual(void) const
qualifiers Check if a value has been assigned to Qual data member.
const TExts & GetExts(void) const
Get the Exts member data.
bool CanGetQual(void) const
Check if it is safe to call GetQual method.
vector< CRef< CGb_qual > > m_Qual
bool IsSetExt(void) const
user defined structure extension Check if a value has been assigned to Ext data member.
TExcept & SetExcept(void)
Assign a value to Except data member.
const TIds & GetIds(void) const
Get the Ids member data.
TIds & SetIds(void)
Assign a value to Ids data member.
bool IsSetSupport(void) const
will replace /experiment, /inference, model-evidence Check if a value has been assigned to Support da...
list< CRef< CUser_object > > TExts
const TTitle & GetTitle(void) const
Get the Title member data.
const TCit & GetCit(void) const
Get the Cit member data.
void ResetExcept(void)
Reset Except data member.
list< CRef< CFeat_id > > m_Ids
void ResetExp_ev(void)
Reset Exp_ev data member.
const TQual & GetQual(void) const
Get the Qual member data.
bool IsSetPartial(void) const
incomplete in some way? Check if a value has been assigned to Partial data member.
list< CRef< CUser_object > > m_Exts
const TId & GetId(void) const
Get the Id member data.
bool IsSetXref(void) const
cite other relevant features Check if a value has been assigned to Xref data member.
TExts & SetExts(void)
Assign a value to Exts data member.
const TLocation & GetLocation(void) const
Get the Location member data.
vector< CRef< CDbtag > > m_Dbxref
TData & SetData(void)
Assign a value to Data data member.
CRef< TProduct > m_Product
EExp_ev
evidence for existence of feature
void ResetPseudo(void)
Reset Pseudo data member.
CSeq_feat_Base & operator=(const CSeq_feat_Base &)
const TData & GetData(void) const
Get the Data member data.
bool CanGetData(void) const
Check if it is safe to call GetData method.
bool IsSetExcept(void) const
something funny about this? Check if a value has been assigned to Except data member.
TLocation & SetLocation(void)
Assign a value to Location data member.
const TExcept_text & GetExcept_text(void) const
Get the Except_text member data.
vector< CRef< CSeqFeatXref > > m_Xref
void ResetData(void)
Reset Data data member.
TPseudo & SetPseudo(void)
Assign a value to Pseudo data member.
bool IsSetExcept_text(void) const
explain if except=TRUE Check if a value has been assigned to Except_text data member.
bool CanGetPartial(void) const
Check if it is safe to call GetPartial method.
const TDbxref & GetDbxref(void) const
Get the Dbxref member data.
CRef< TLocation > m_Location
bool CanGetId(void) const
Check if it is safe to call GetId method.
CRef< TSupport > m_Support
list< CRef< CFeat_id > > TIds
bool IsSetExp_ev(void) const
Check if a value has been assigned to Exp_ev data member.
bool CanGetLocation(void) const
Check if it is safe to call GetLocation method.
bool IsSetIds(void) const
set of Ids; will replace 'id' field Check if a value has been assigned to Ids data member.
bool CanGetExcept_text(void) const
Check if it is safe to call GetExcept_text method.
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
TPseudo GetPseudo(void) const
Get the Pseudo member data.
const TProduct & GetProduct(void) const
Get the Product member data.
bool CanGetExcept(void) const
Check if it is safe to call GetExcept method.
bool IsSetPseudo(void) const
annotated on pseudogene? Check if a value has been assigned to Pseudo data member.
const TComment & GetComment(void) const
Get the Comment member data.
bool CanGetExt(void) const
Check if it is safe to call GetExt method.
bool IsSetExts(void) const
set of extensions; will replace 'ext' field Check if a value has been assigned to Exts data member.
bool IsSetCit(void) const
citations for this feature Check if a value has been assigned to Cit data member.
TTitle & SetTitle(void)
Assign a value to Title data member.
TPartial GetPartial(void) const
Get the Partial member data.
const TSupport & GetSupport(void) const
Get the Support member data.
void ResetLocation(void)
Reset Location data member.
TExcept GetExcept(void) const
Get the Except member data.
TComment & SetComment(void)
Assign a value to Comment data member.
const TXref & GetXref(void) const
Get the Xref member data.
vector< CRef< CSeqFeatXref > > TXref
DECLARE_INTERNAL_TYPE_INFO()
vector< CRef< CGb_qual > > TQual
bool CanGetProduct(void) const
Check if it is safe to call GetProduct method.
bool CanGetIds(void) const
Check if it is safe to call GetIds method.
TExp_ev & SetExp_ev(void)
Assign a value to Exp_ev data member.
bool IsSetDbxref(void) const
support for xref to other databases Check if a value has been assigned to Dbxref data member.
Tparent::CMemberIndex< E_memberIndex, 20 > TmemberIndex
TQual & SetQual(void)
Assign a value to Qual data member.
bool IsSetProduct(void) const
product of process Check if a value has been assigned to Product data member.
const TExt & GetExt(void) const
Get the Ext member data.
TExcept_text & SetExcept_text(void)
Assign a value to Except_text data member.
CSeq_feat_Base(const CSeq_feat_Base &)
TExp_ev GetExp_ev(void) const
Get the Exp_ev member data.
bool CanGetTitle(void) const
Check if it is safe to call GetTitle method.
bool CanGetPseudo(void) const
Check if it is safe to call GetPseudo method.
bool IsSetLocation(void) const
feature made from Check if a value has been assigned to Location data member.
bool CanGetComment(void) const
Check if it is safe to call GetComment method.
static bool GetIds(const T &d, set< string > &labels, const string name="", bool detect=false, bool found=false)
string GetProduct(const CProt_ref &prot_ref)
void SetPartial(CSeq_loc &loc, CRef< CSeq_feat > feat, CSeq_loc::TStrand strand, bool partial_start, bool partial_stop)
void SetDbxref(objects::CBioSource &src, string db, objects::CObject_id::TId id)
static void SetTitle(CRef< CSeq_entry > entry, string title)