Go to the SVN repository for this file.
26arg_desc->SetUsageContext(
"",
"Test CRemoteUpdater with PubMed");
29arg_desc->AddOptionalKey(
"url",
"url",
"eutils base URL (http://eutils.ncbi.nlm.nih.gov/entrez/eutils/ by default)",
CArgDescriptions::eString);
41 TIntId id= args[
"id"].AsIntId();
50ostream*
output=
nullptr;
52 output= &args[
"o"].AsOutputFile();
60 stringurl = args[
"url"].AsString();
73args[
"o"].CloseFile();
80 int main(
intargc,
const char* argv[])
void SetBaseURL(string url)
void UpdatePubReferences(CSerialObject &obj)
CTestRemoteUpdaterApplication()
void Init() override
Initialize the application.
int Run() override
Run the application.
static SQLCHAR output[256]
SStrictId_Entrez::TId TEntrezId
TEntrezId type for entrez ids which require the same strictness as TGi.
virtual const CArgs & GetArgs(void) const
Get parsed command line arguments.
int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)
Main function (entry point) for the NCBI application.
virtual void SetupArgDescriptions(CArgDescriptions *arg_desc)
Setup the command line argument descriptions.
#define ENTREZ_ID_FROM(T, value)
void SetVersion(const CVersionInfo &version)
Set the version number for the program.
@ fHidden
Hide it in Usage.
@ eIntId
Convertible to TIntId (int or Int8 depending on NCBI_INT8_GI)
@ eString
An arbitrary string.
@ eOutputFile
Name of file (must be writable)
#define MSerial_AsnText
I/O stream manipulators â.
TPmid & SetPmid(void)
Select the variant.
void SetPub(TPub &value)
Assign a value to Pub data member.
TPub & SetPub(void)
Select the variant.
#define NCBI_SC_VERSION_PROXY
#define NCBI_TEAMCITY_BUILD_NUMBER_PROXY
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
int main(int argc, const char *argv[])
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4