59 string* date_ptr = &date;
89 *
label +=
"Patent number ";
129 string assignees, consortia,
prefix =
"\n";
@Auth_list.hpp User-defined methods of the data storage class.
static bool x_GetLabelV2(string *label, const CAuth_list &authors, string prefix)
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_Consortia
Consortia, not authors [internal].
@ fLabel_FlatNCBI
For GenBank or GenPept [V2].
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 const char label[]
bool CanGetAffil(void) const
Check if it is safe to call GetAffil method.
const TDoc_type & GetDoc_type(void) const
Get the Doc_type member data.
bool IsSetNumber(void) const
Patent Document Number Check if a value has been assigned to Number data member.
bool CanGetCity(void) const
Check if it is safe to call GetCity method.
const TAffil & GetAffil(void) const
Get the Affil member data.
bool CanGetSub(void) const
Check if it is safe to call GetSub method.
const TStr & GetStr(void) const
Get the variant data.
bool CanGetCountry(void) const
Check if it is safe to call GetCountry method.
const TApp_date & GetApp_date(void) const
Get the App_date member data.
const TDate_issue & GetDate_issue(void) const
Get the Date_issue member data.
const TStreet & GetStreet(void) const
Get the Street member data.
const TAffil & GetAffil(void) const
Get the Affil member data.
const TSub & GetSub(void) const
Get the Sub member data.
bool CanGetDate_issue(void) const
Check if it is safe to call GetDate_issue method.
bool CanGetApp_number(void) const
Check if it is safe to call GetApp_number method.
bool CanGetNumber(void) const
Check if it is safe to call GetNumber method.
E_Choice Which(void) const
Which variant is currently selected.
const TNumber & GetNumber(void) const
Get the Number member data.
const TAuthors & GetAuthors(void) const
Get the Authors member data.
const TCountry & GetCountry(void) const
Get the Country member data.
const TStd & GetStd(void) const
Get the variant data.
bool CanGetAssignees(void) const
Check if it is safe to call GetAssignees method.
bool IsSetApp_date(void) const
Patent Appl File Date Check if a value has been assigned to App_date data member.
bool IsSetApp_number(void) const
Patent Doc Appl Number Check if a value has been assigned to App_number data member.
bool CanGetApp_date(void) const
Check if it is safe to call GetApp_date method.
const TApp_number & GetApp_number(void) const
Get the App_number member data.
bool CanGetStreet(void) const
Check if it is safe to call GetStreet method.
bool CanGetDiv(void) const
Check if it is safe to call GetDiv method.
const TAssignees & GetAssignees(void) const
Get the Assignees member data.
bool CanGetAffil(void) const
Check if it is safe to call GetAffil method.
const TCity & GetCity(void) const
Get the City member data.
const TDiv & GetDiv(void) const
Get the Div member data.
bool IsSetDate_issue(void) const
Patent Issue/Pub Date Check if a value has been assigned to Date_issue data member.
const TCountry & GetCountry(void) const
Get the Country member data.
static const char * prefix[]