35 #ifndef __REMOTE_UPDATER_HPP_INCLUDED__
36 #define __REMOTE_UPDATER_HPP_INCLUDED__
95 using FLogger =
function<void(
const string&)>;
117 void SetMaxMlaAttempts(
int max);
124 throw std::invalid_argument(
"invalid CPub choice");
131 void UpdateOrgFromTaxon(
CSeqdesc& desc);
132 void SetTaxonTimeout(
unsigned seconds,
unsigned retries,
bool exponential);
135 static void ConvertToStandardAuthors(
CAuth_list& auth_list);
138 static void PostProcessPubs(
CPubdesc& pubdesc);
143 void ReportStats(std::ostream&
str);
148 m_pm_interceptor =
f;
155 void xUpdateOrgTaxname(
COrg_ref& org);
157 bool xSetFromConfig();
158 void xInitTaxCache();
165 bool m_pm_use_cache =
true;
174 int m_MaxMlaAttempts = 3;
176 bool m_TaxonTimeoutSet =
false;
177 unsigned m_TaxonTimeout = 20;
178 unsigned m_TaxonAttempts = 5;
179 bool m_TaxonExponential =
false;
@Auth_list.hpp User-defined methods of the data storage class.
virtual string GetText(void) const
@Pubdesc.hpp User-defined methods of the data storage class.
virtual CRemoteUpdaterMessage * Clone(void) const
CRemoteUpdaterMessage(const string &msg, EPubmedError error)
void SetPubReturnType(CPub::E_Choice t)
TPubInterceptor SetPubmedInterceptor(TPubInterceptor f)
unique_ptr< CCachedTaxon3_impl > m_taxClient
CRemoteUpdater(FLogger logger, EPubmedSource, CEUtilsUpdater::ENormalize norm=CEUtilsUpdater::ENormalize::Off)
CRemoteUpdater(IObjtoolsListener *pMessageListener, EPubmedSource, CEUtilsUpdater::ENormalize norm=CEUtilsUpdater::ENormalize::Off)
function< void(const string &)> FLogger
taxupdate_func_t m_taxon_update
taxupdate_func_t GetUpdateFunc() const
unique_ptr< CEUtilsUpdater > m_pubmed
@Seq_descr.hpp User-defined methods of the data storage class.
Base class for all serializable objects.
std::function< void(CRef< CPub > &)> TPubInterceptor
static const char * str(char *buf, int n)
SStrictId_Entrez::TId TEntrezId
TEntrezId type for entrez ids which require the same strictness as TGi.
@ eDiag_Warning
Warning message.
CException(void)
Constructor with no arguments.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_XOBJEDIT_EXPORT
function< CRef< CTaxon3_reply >(const vector< CRef< COrg_ref > > &list)> taxupdate_func_t
Miscellaneous common-use basic types and functionality.
double f(double x_, const double &y_)
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)