(
const CPub& pub,
intpmid,
intmuid,
const string& uniqueStr);
68 if( !
gen.IsSetCit() )
70 if(!
gen.IsSetJournal() && !
gen.IsSetDate() &&
71 gen.IsSetSerial_number() &&
gen.GetSerial_number() > 0) {
82 intpmid = 0, muid = 0;
86 const CPub& pub = **it;
90 if(pmid == 0 && muid == 0) {
92 const CPub& pub = **it;
109new_feat->
Assign(mf->GetOriginalFeature());
119 boolmodified =
false;
121 for(CPub_set::TPub::iterator it = cont.begin(); it != cont.end(); ) {
124it = pubs.
SetPub().erase(it);
144 switch(pub.
Which()) {
176 if(
gen.CanGetMuid() && muid == 0) {
179 if(
gen.CanGetPmid() && pmid == 0) {
206 switch((*it)->Which()) {
225 switch(pub.
Which()) {
242 if( muid == 0 && pmid == 0 ) {
246 size_t len= pub_unique.length();
247 if(
len> 0 && pub_unique[
len- 1] ==
'>') {
251pub_unique.resize(
len);
296 if(mf->GetData().IsGene() || !mf->IsSetXref())
300 if((**it).CanGetData()) {
User-defined methods of the data storage class.
User-defined methods of the data storage class.
void AddCommand(IEditCommand &command)
static CIRef< IEditCommand > RemoveCitations(objects::CSeq_entry_Handle &seh, const objects::CPub_equiv &pubs)
static CIRef< IEditCommand > DeleteGeneXRefs(objects::CSeq_entry_Handle &seh, const objects::CGene_ref &gene)
bool GetLabel(string *label, ELabelType type=eContent, TLabelFlags flags=0, ELabelVersion version=eLabel_DefaultVersion) const
Concatenate a label for this pub to label.
namespace ncbi::objects::
@ eLabel_V1
Traditional GetLabel semantics, modeled on the C Toolkit's PubLabelUnique.
@ fLabel_Unique
Append a unique tag [V1].
static void s_GetCitIds(const CPub &pub, int &pmid, int &muid)
static bool s_EquivGenes(const CGene_ref &gene1, const CGene_ref &gene2)
static bool s_CitMatches(const CPub &pub, int pmid, int muid, const string &uniqueStr)
static bool s_IsOnlySerial(const CPub &pub)
#define ENTREZ_ID_TO(T, entrez_id)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
const TPrim & Get(void) const
void Reset(void)
Reset reference object.
TObjectType * GetPointerOrNull(void) THROWS_NONE
Get pointer value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
@ eNocase
Case insensitive compare.
bool CanGetIds(void) const
Check if it is safe to call GetIds method.
const Tdata & Get(void) const
Get the member data.
list< CRef< CArticleId > > Tdata
const TIds & GetIds(void) const
Get the Ids member data.
@ e_Pubmed
see types below
bool CanGetLocus(void) const
Check if it is safe to call GetLocus method.
bool CanGetLocus_tag(void) const
Check if it is safe to call GetLocus_tag method.
bool CanGetAllele(void) const
Check if it is safe to call GetAllele method.
const TLocus_tag & GetLocus_tag(void) const
Get the Locus_tag member data.
const TLocus & GetLocus(void) const
Get the Locus member data.
const TAllele & GetAllele(void) const
Get the Allele member data.
bool CanGetPmid(void) const
Check if it is safe to call GetPmid method.
bool CanGetCit(void) const
Check if it is safe to call GetCit method.
bool CanGetUid(void) const
Check if it is safe to call GetUid method.
const TCit & GetCit(void) const
Get the Cit member data.
TUid GetUid(void) const
Get the Uid member data.
const TPmid & GetPmid(void) const
Get the Pmid member data.
bool IsPmid(void) const
Check if variant Pmid is selected.
const TMedline & GetMedline(void) const
Get the variant data.
list< CRef< CPub > > Tdata
const TPmid & GetPmid(void) const
Get the variant data.
const TArticle & GetArticle(void) const
Get the variant data.
bool IsPat_id(void) const
Check if variant Pat_id is selected.
const Tdata & Get(void) const
Get the member data.
const TEquiv & GetEquiv(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
bool IsEquiv(void) const
Check if variant Equiv is selected.
list< CRef< CPub > > TPub
bool IsPub(void) const
Check if variant Pub is selected.
TPub & SetPub(void)
Select the variant.
const TGen & GetGen(void) const
Get the variant data.
TMuid GetMuid(void) const
Get the variant data.
bool IsMuid(void) const
Check if variant Muid is selected.
bool IsGen(void) const
Check if variant Gen is selected.
@ e_Gen
general or generic unparsed
@ e_Equiv
to cite a variety of ways
bool CanGetCit(void) const
Check if it is safe to call GetCit method.
void SetCit(TCit &value)
Assign a value to Cit data member.
vector< CRef< CSeqFeatXref > > TXref
User-defined methods of the data storage class.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4