64 0, 0, 0, 0, 0, 0,
IsSetDate() ? &date : 0);
71 static const char* kToINSD =
" to the EMBL/GenBank/DDBJ databases.";
81 date =
"\?\?-\?\?\?-\?\?\?\?";
83 *
label +=
"Submitted (" + date +
')';
bool GetLabelV1(string *label, TLabelFlags flags) const override
bool GetLabelV2(string *label, TLabelFlags flags) const override
void GetDate(string *label, bool year_only=false) const
Append a standardized string representation of the date to the label.
@ eLabel_V2
New implementation, in line with GenBank/GenPept REFERENCE JOURNAL fields and the like.
int TLabelFlags
binary OR of ELabelFlags
@ fLabel_FlatEMBL
For EMBL or EMBLPept [V2].
@ fLabel_Unique
Append a unique tag [V1].
static bool HasText(const string &s)
static bool x_GetLabelV1(string *label, bool unique, const CAuth_list *authors, const CImprint *imprint, const CTitle *title, const CCit_book *book, const CCit_jour *journal, const string *title1=0, const string *title2=0, const string *titleunique=0, const string *date=0, const string *volume=0, const string *issue=0, const string *pages=0, bool unpublished=false)
bool GetLabel(string *label, TLabelFlags flags=0, ELabelVersion version=eLabel_DefaultVersion) const override
Append a label to the specified string per the specified flags.
static void MaybeAddSpace(string *label)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
static string & ToUpper(string &str)
Convert string to upper case – string& version.
static const char label[]
const TDate & GetDate(void) const
Get the Date member data.
const TAffil & GetAffil(void) const
Get the Affil member data.
bool CanGetDate(void) const
Check if it is safe to call GetDate method.
const TAuthors & GetAuthors(void) const
Get the Authors member data.
bool IsSetDate(void) const
replaces imp, will become required Check if a value has been assigned to Date data member.
const TImp & GetImp(void) const
Get the Imp member data.
bool IsSetImp(void) const
this only used to get date.