A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/cidtool_8cpp_source.html below:

NCBI C++ ToolKit: src/app/grid/util/cidtool.cpp Source File

53 #define OPT_DEF(opt_type, opt_id) CCommandLineParser::opt_type, opt_id 55 #define OPT_DEF(opt_type, opt_id) CCommandLineParser::opt_type 86  "dump"

,

"Dump the contents of a CompoundID."

,

87  "Print the contents of the CompoundID specified on the " 88  "command line to the standard output stream (or a file)."

,

92  "make"

,

"Generate a CompoundID."

,

93  "Read CompoundID dump from the standard input stream " 94  "(or the specified file) and print the CompoundID that " 99 #define TOTAL_NUMBER_OF_COMMANDS int(sizeof(s_CommandDefinitions) / \ 100  sizeof(*s_CommandDefinitions)) 109  "Generate and decode identifiers in CompoundID format."

);

116  "EOption order must match positions in s_OptionDefinitions."

);

128  for

(cmd_opt = cmd_def->

options

; *cmd_opt >= 0; ++cmd_opt)

139  catch

(exception& e) {

144  for

(cmd_opt = cmd_def->

options

; *cmd_opt >= 0; ++cmd_opt)

147  const char

* opt_value;

149  while

(clparser.

NextOption

(&opt_id, &opt_value)) {

157

fprintf(stderr,

"%s: %s\n"

, opt_value,

strerror

(errno));

163

fprintf(stderr,

"%s: %s\n"

, opt_value,

strerror

(errno));

175  for

(

const int

* required_opt =

177

*required_opt != -1; ++required_opt)

180  ": option '--%s' requires option '--%s'.\n"

,

183

*required_opt].name_variants);

186  while

(--opt_id >= 0);

197  return

(this->*cmd_def->

cmd_proc

)();

200

fprintf(stderr,

"%s\n"

, e.

GetMsg

().c_str());

209

fprintf(stderr,

"%s\n"

, e.

what

());

212  catch

(

string

& s) {

213

fprintf(stderr,

"%s\n"

, s.c_str());

245

}

while

(bytes_read ==

sizeof

(

buffer

));

254 int main

(

int

argc,

const char

* argv[])

int Parse(int argc, const char *const *argv)

Parse the command line.

bool NextOption(int *opt_id, const char **opt_value)

void AddOption(EOptionType type, int opt_id, const string &name_variants, const string &description)

void AddCommand(int cmd_id, const string &name_variants, const string &synopsis, const string &usage, int cat_id=-1)

void AddAssociation(int cmd_id, int opt_id)

CCompoundID FromString(const string &cid)

Unpack the base64-encoded ID and return a CCompoundID object for field extraction.

CCompoundID FromDump(const string &cid_dump)

Restore the compound ID from its textual representation created by CCompoundID::Dump().

Base64-encoded ID string that contains extractable typed fields.

string Dump()

Dump the contents of the ID in the human-readable format that can also be parsed by CCompoundIDPool::...

string ToString()

Pack the ID and return its string representation.

#define GRID_APP_VERSION_INFO

#define INPUT_FILE_OPTION

#define OUTPUT_FILE_OPTION

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.

const string & GetMsg(void) const

Get message string.

virtual const char * what(void) const noexcept

Standard report (includes full backlog).

unsigned int

A callback function used to compare two keys in a database.

Parameters initialization model.

NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.

const char * name_variants

int(CGridCommandLineInterfaceApp::* cmd_proc)()

int options[eNumberOfOptions+1]

CCommandLineParser::EOptionType type

const char * name_variants


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