46 virtual void Init(
void);
47 virtual int Run(
void);
57 arg_desc->SetUsageContext
59 "Object serialization demo program");
62 arg_desc->AddDefaultKey
63 (
"input",
"InputFile",
64 "name of file to read ASN.1 data from (standard input by default)",
67 arg_desc->AddDefaultKey
68 (
"output",
"OutputFile",
69 "name of file to write XML data to (standard output by default)",
User-defined methods of the data storage class.
int NcbiSys_main(int argc, ncbi::TXChar *argv[])
virtual int Run(void)
Run the application.
virtual void Init(void)
Initialize the application.
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.
const CNcbiArguments & GetArguments(void) const
Get the application's cached unprocessed command-line arguments.
@ fPreOpen
Open file right away; for eInputFile, eOutputFile, eIOFile.
@ eInputFile
Name of file (must exist and be readable)
@ eOutputFile
Name of file (must be writable)
#define MSerial_AsnText
I/O stream manipulators –.
Magic spell ;-) needed for some weird compilers... very empiric.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.