53 m_strSeqId(
"<FIX ME>" ),
54 m_strSource(
"<FIX ME>" ),
55 m_strType(
"<FIX ME>" ),
56 m_strStart(
"<FIX ME>" ),
57 m_strEnd(
"<FIX ME>" ),
58 m_strScore(
"<FIX ME>" ),
59 m_strStrand(
"<FIX ME>" ),
60 m_strPhase(
"<FIX ME>" ),
61 m_strAttributes(
"<FIX ME>" )
75 switch ( pId->
Which() ) {
117 const vector< CRef< CGb_qual > >& quals = feature.
GetQual();
118 vector< CRef< CGb_qual > >::const_iterator it = quals.begin();
119 while ( it != quals.end() ) {
120 if ( (*it)->CanGetQual() && (*it)->CanGetVal() ) {
121 if ( (*it)->GetQual() ==
"standard_name" ) {
196 const vector< CRef< CGb_qual > >& quals = feature.
GetQual();
197 vector< CRef< CGb_qual > >::const_iterator it = quals.begin();
198 while ( it != quals.end() ) {
199 if ( (*it)->CanGetQual() && (*it)->CanGetVal() ) {
200 if ( (*it)->GetQual() ==
"source" ) {
219 const vector< CRef< CGb_qual > >& quals = feature.
GetQual();
220 vector< CRef< CGb_qual > >::const_iterator it = quals.begin();
221 while ( it != quals.end() ) {
222 if ( (*it)->CanGetQual() && (*it)->CanGetVal() ) {
223 if ( (*it)->GetQual() ==
"score" ) {
304 bool bIdAssigned =
false;
316 for (
size_t i=0;
i < xref.size(); ++
i ) {
318 if ( xref[
i]->CanGetId() && xref[
i]->CanGetData() ) {
324 if ( !
value.empty() ) {
330 if ( !
value.empty() ) {
336 const vector< CRef< CGb_qual > >& quals = feature.
GetQual();
337 vector< CRef< CGb_qual > >::const_iterator it = quals.begin();
338 while ( it != quals.end() ) {
339 if ( (*it)->CanGetQual() && (*it)->CanGetVal() ) {
340 if ( (*it)->GetQual() ==
"ID" ) {
341 if ( ! bIdAssigned ) {
345 if ( (*it)->GetQual() ==
"Name" ) {
348 if ( (*it)->GetQual() ==
"Var_type" ) {
366 if ( dbxrefs.size() > 0 ) {
368 dbxrefs[0]->GetLabel( &
value );
369 for (
size_t i=1;
i < dbxrefs.size(); ++
i ) {
371 dbxrefs[
i]->GetLabel( &
label );
443 const string&
value )
460 switch (
id.Which() ) {
466 if (
local.IsId() ) {
469 if (
local.IsStr() ) {
470 return local.GetStr();
485 list< CRef< CSeq_feat > >::const_iterator it =
table.begin();
486 while ( it !=
table.end() ) {
487 if ( (*it)->CanGetId() && (*it)->CanGetData() ) {
488 if (
id.
Equals( (*it)->GetId() ) ) {
489 return (*it)->GetData().GetSubtype();
503 switch ( maybe_parent ) {
514 switch ( maybe_child ) {
526 switch ( maybe_child ) {
538 switch ( maybe_child ) {
User-defined methods of the data storage class.
User-defined methods of the data storage class.
@ eExtreme_Positional
numerical value
User-defined methods of the data storage class.
static CSeq_feat::TData::ESubtype GetSubtypeOf(const CSeq_annot &, const CFeat_id &)
bool AssignStart(const CSeq_feat &)
bool AssignScore(const CSeq_feat &)
void DumpRecord(CNcbiOstream &)
bool AssignPhase(const CSeq_feat &)
bool AssignStrand(const CSeq_feat &)
bool AssignStop(const CSeq_feat &)
bool AssignType(const CSeq_feat &)
bool SetRecord(const CSeq_annot &, const CSeq_feat &)
bool AssignSeqId(const CSeq_feat &)
bool AssignAttributesCore(const CSeq_annot &, const CSeq_feat &)
bool AssignSource(const CSeq_feat &)
void AddAttribute(const string &key, const string &value)
static string FeatIdString(const CFeat_id &id)
bool AssignAttributesExtended(const CSeq_feat &)
static bool IsParentOf(CSeq_feat::TData::ESubtype, CSeq_feat::TData::ESubtype)
ESubtype GetSubtype(void) const
string GetKey(EVocabulary vocab=eVocabulary_full) const
@ eSubtype_bad
These no longer need to match the FEATDEF values in the C toolkit's objfdef.h.
namespace ncbi::objects::
static const char location[]
std::ofstream out("events_result.xml")
main entry point for tests
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
static string UIntToString(unsigned int value, TNumToStringFlags flags=0, int base=10)
Convert UInt to string.
static const char label[]
bool IsId(void) const
Check if variant Id is selected.
const TStr & GetStr(void) const
Get the variant data.
TId GetId(void) const
Get the variant data.
bool CanGetDbxref(void) const
Check if it is safe to call GetDbxref method.
vector< CRef< CDbtag > > TDbxref
bool CanGetXref(void) const
Check if it is safe to call GetXref method.
bool CanGetQual(void) const
Check if it is safe to call GetQual method.
const TQual & GetQual(void) const
Get the Qual member data.
const TId & GetId(void) const
Get the Id member data.
const TLocation & GetLocation(void) const
Get the Location member data.
TFrame GetFrame(void) const
Get the Frame member data.
const TData & GetData(void) const
Get the Data member data.
bool CanGetData(void) const
Check if it is safe to call GetData method.
const TDbxref & GetDbxref(void) const
Get the Dbxref member data.
bool CanGetId(void) const
Check if it is safe to call GetId method.
bool CanGetLocation(void) const
Check if it is safe to call GetLocation method.
const TCdregion & GetCdregion(void) const
Get the variant data.
const TComment & GetComment(void) const
Get the Comment member data.
const TXref & GetXref(void) const
Get the Xref member data.
vector< CRef< CSeqFeatXref > > TXref
bool CanGetComment(void) const
Check if it is safe to call GetComment method.
@ e_Local
for local software use
@ eFrame_three
reading frame
ENa_strand
strand of nucleic acid
E_Choice Which(void) const
Which variant is currently selected.
TGi GetGi(void) const
Get the variant data.
TVersion GetVersion(void) const
Get the Version member data.
bool CanGetVersion(void) const
Check if it is safe to call GetVersion method.
const TOther & GetOther(void) const
Get the variant data.
const TLocal & GetLocal(void) const
Get the variant data.
bool CanGetAccession(void) const
Check if it is safe to call GetAccession method.
const TAccession & GetAccession(void) const
Get the Accession member data.
@ e_Other
for historical reasons, 'other' = 'refseq'
@ e_Gi
GenInfo Integrated Database.
const TFtable & GetFtable(void) const
Get the variant data.
const TData & GetData(void) const
Get the Data member data.
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
const struct ncbi::grid::netcache::search::fields::KEY key
static bool Equals(const CVariation::TPlacements &p1, const CVariation::TPlacements &p2)