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

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

60  virtual void Init

(

void

);

61  virtual int Run

(

void

);

62  virtual void Exit

(

void

);

76

arg_desc->SetUsageContext(

GetArguments

().GetProgramBasename(),

77  "CArgDescriptions demo program"

);

79

arg_desc->AddKey(

"cache"

,

"ASNCache"

,

80  "Path to ASN.1 cache"

,

83

arg_desc->AddKey(

"chunk"

,

"ChunkToWalk"

,

84  "The ID number of the chunk to be tested"

,

87

arg_desc->AddDefaultKey(

"n"

,

"EntryNumber"

,

88  "Number of entries to read"

,

92

arg_desc->AddDefaultKey(

"o"

,

"OutputFile"

,

93  "File to place ASN seq-entries in"

,

107  Int4

chunk_id = args[

"chunk"

].AsInteger();

108  Int4

num_to_read = args[

"n"

].AsInteger();

109  CNcbiOstream

& output_stream = args[

"o"

].AsOutputFile();

114  std::string

cache_path( args[

"cache"

].AsString() );

120  LOG_POST

(

Info

<<

"Walking chunk file "

<< chunk_file_name );

129  while

( num_to_read < 0 ||

count

< num_to_read )

131

chunk_object_stream >> the_blob;

133

output_stream <<

"Blob "

<<

count

<<

" at offset " 137

<<

std::hex

<< the_blob.GetMagic() );

142

chunk_object_stream >> id;

153  LOG_POST

(

Info

<<

"Done walking "

<<

count

<<

" blobs in "

<< elapsed_time <<

" seconds."

);

173 int main

(

int

argc,

const char

* argv[])

User-defined methods of the data storage class.

Contains the class definiton for CAsnCache, the main client class for accessing the ASN cache data.

CAsnCache is used by clients to access the ASN cache data.

static std::string s_MakeChunkFileName(const std::string &root_path, unsigned int serial_num)

CObjectIStreamAsnBinary –.

virtual void Exit(void)

Cleanup on application exit.

virtual void Init(void)

Initialize the application.

virtual int Run(void)

Run 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.

@ eInputFile

Name of file (must exist and be readable)

@ eOutputFile

Name of file (must be writable)

@ eInteger

Convertible into an integer number (int or Int8)

#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)

void Info(CExceptionArgs_Base &args)

const string AsFastaString(void) const

CNcbiStreampos GetStreamPos(void) const

Get the current stream position.

int32_t Int4

4-byte (32-bit) signed integer

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

IO_PREFIX::ifstream CNcbiIfstream

Portable alias for ifstream.

double Elapsed(void) const

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

void Start(void)

Start the timer.

static void hex(unsigned char c)

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,...

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