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/cache__index__copy_8cpp_source.html below:

NCBI C++ ToolKit: src/app/asn_cache/cache_index_copy.cpp Source File

52  virtual void Init

(

void

);

53  virtual int Run

(

void

);

54  virtual void Exit

(

void

);

68

arg_desc->SetUsageContext(

GetArguments

().GetProgramBasename(),

69  "CArgDescriptions demo program"

);

71

arg_desc->AddKey(

"i"

,

"InputFile"

,

72  "Cache index source"

,

75

arg_desc->AddKey(

"o"

,

"OutputFile"

,

76  "Cache index destination"

,

80

arg_desc->AddAlias(

"t"

,

"type"

);

81

arg_desc->SetConstraint(

"type"

,

87

arg_desc->SetCurrentGroup(

"Default application arguments"

);

98  string

output_file = args[

"o"

].AsString();

102  else if

(

input_file

.find(

"seq_id_cache.idx"

) != string::npos)

104  else if

(

input_file

.find(

"asn_cache.idx"

) != string::npos)

114  output

.SetCacheSize(256 * 1024);

135  "failed to add item to index"

);

164 int main

(

int

argc,

const char

* argv[])

Berkeley BDB file cursor.

int main(int argc, const char *argv[])

This is a simple BDB structure holding information about a given accession and its indexed location.

Berkeley DB file cursor class.

virtual int Run(void)

Run the application.

virtual void Init(void)

Initialize the application.

virtual void Exit(void)

Cleanup on application exit.

static SQLCHAR output[256]

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.

@ eInputFile

Name of file (must exist and be readable)

@ eString

An arbitrary string.

@ eOutputFile

Name of file (must be writable)

void InitMultiFetch(size_t buffer_size, EMultiFetchMode mfm=eFetchAll)

Init multi-row fetch.

EBDB_ErrCode Fetch(EFetchDirection fdir=eDefault)

Fetch record.

@ eReadWriteCreate

read-write, create if it doesn't exist

#define LOG_POST(message)

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...

void SetDiagStream(CNcbiOstream *os, bool quick_flush=true, FDiagCleanup cleanup=0, void *cleanup_data=0, const string &stream_name="")

Set diagnostic stream.

void Error(CExceptionArgs_Base &args)

#define NCBI_THROW(exception_class, err_code, message)

Generic macro to throw an exception, given the exception class, error code and message string.

virtual bool Remove(TRemoveFlags flags=eRecursive) const

Remove a directory entry.

double Elapsed(void) const

Return time elapsed since first Start() or last Restart() call (in seconds).

void Start(void)

Start the timer.

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

Defines command line argument related classes.

Defines unified interface to application:

Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...


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