78 if ( !year.empty() ) {
83 *
label +=
", In press";
bool GetLabelV1(string *label, TLabelFlags flags) const override
bool GetLabelV2(string *label, TLabelFlags flags) const override
const string & GetTitle(C_E::E_Choice type=C_E::e_not_set) const
If the internal list contains a title (of the specified type, if given), returns the corresponding st...
@ eLabel_V1
Traditional GetLabel semantics, modeled on the C Toolkit's PubLabelUnique.
int TLabelFlags
binary OR of ELabelFlags
@ fLabel_Unique
Append a unique tag [V1].
static string GetParenthesizedYear(const CDate &date)
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 string & ToUpper(string &str)
Convert string to upper case – string& version.
static const char label[]
const TTitle & GetTitle(void) const
Get the Title member data.
const TAuthors & GetAuthors(void) const
Get the Authors member data.
bool CanGetPrepub(void) const
Check if it is safe to call GetPrepub method.
TPrepub GetPrepub(void) const
Get the Prepub member data.
const TPub & GetPub(void) const
Get the Pub member data.
bool CanGetPub(void) const
Check if it is safe to call GetPub method.
const TDate & GetDate(void) const
Get the Date member data.
const TImp & GetImp(void) const
Get the Imp member data.
@ ePrepub_in_press
accepted, not published