73 const CPub& pub = **pub_iter;
78 latestPub.
Reset(&pub);
100 changedSeqdesc.
Reset();
110 latestSeqdesc.
Reset(&(*desc_it));
111 seh = desc_it.GetSeq_entry_Handle();
123 _ASSERT(latestDate && latestCitSub && latestSeqdesc);
128 newDesc->
Assign(*latestSeqdesc);
131 CPub& pub = **pub_iter;
134 changedSeqdesc.
Reset(latestSeqdesc);
static bool s_FindLatestCitSub(const CPubdesc &pubdesc, CConstRef< CDate > &latestDate, CConstRef< CCit_sub > &latestCitSub, CConstRef< CPub > &latestPub)
static const CDate * s_GetLaterDate(const CDate *d1, const CDate *d2)
static CRef< objects::CSeqdesc > s_GetCitSubForUpdatedSequence(const objects::CBioseq_Handle &bsh, string &message, CConstRef< objects::CSeqdesc > &changedSeqdesc, objects::CSeq_entry_Handle &seh)
Generates/Creates a Cit-sub publication that will be added to the sequence.
static const char * sm_SubmitterUpdateText
static const char * sm_ExistingCitSub
static const char * sm_AddedCitSub
static CRef< objects::CSeqdesc > s_GetCitSubForTrimmedSequence(const objects::CBioseq_Handle &bsh, string &message, CConstRef< objects::CSeqdesc > &changedSeqdesc, objects::CSeq_entry_Handle &seh)
static const char * sm_ChangeExistingCitSub
static CRef< objects::CSeqdesc > sx_GetCitSubForSequence(const objects::CBioseq_Handle &bsh, string &message, CConstRef< objects::CSeqdesc > &changedSeqdesc, objects::CSeq_entry_Handle &seh, const CTempString &text)
static const char * sm_NoEarlierCitSub
static const char * sm_TrimmedText
static const char * sm_DifferentCitSub
ECompare Compare(const CDate &date) const
void SetToTime(const CTime &time, EPrecision prec=ePrecision_second)
@ eCompare_same
They're equivalent.
@ eCompare_after
*this comes second.
bool SameCitation(const CPub &other) const
@Pubdesc.hpp User-defined methods of the data storage class.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
void Reset(void)
Reset handle and make it not to point to any seq-entry.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool EqualCase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-sensitive equality of a substring with another string.
CTime CurrentTime(CTime::ETimeZone tz=CTime::eLocal, CTime::ETimeZonePrecision tzp=CTime::eTZPrecisionDefault)
const TDescr & GetDescr(void) const
Get the Descr member data.
const TDate & GetDate(void) const
Get the Date member data.
bool IsSetDescr(void) const
description of changes for public view Check if a value has been assigned to Descr data member.
void SetDate(TDate &value)
Assign a value to Date data member.
bool IsSetDate(void) const
replaces imp, will become required Check if a value has been assigned to Date data member.
void SetDescr(const TDescr &value)
Assign a value to Descr data member.
E_Choice Which(void) const
Which variant is currently selected.
@ e_Str
for those unparsed dates
const TSub & GetSub(void) const
Get the variant data.
TSub & SetSub(void)
Select the variant.
bool IsSub(void) const
Check if variant Sub is selected.
void SetPub(TPub &value)
Assign a value to Pub data member.
TPub & SetPub(void)
Select the variant.
@ e_Pub
a reference to the publication
static void text(MDB_val *v)
Utility macros and typedefs for exploring NCBI objects from pub.asn.
#define FOR_EACH_PUB_ON_PUBDESC(Itr, Var)
FOR_EACH_PUB_ON_PUBDESC EDIT_EACH_PUB_ON_PUBDESC.
#define EDIT_EACH_PUB_ON_PUBDESC(Itr, Var)