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

NCBI C++ ToolKit: src/util/image/demo/image_info.cpp Source File

49  virtual void Init

(

void

);

50  virtual int Run

(

void

);

51  virtual void Exit

(

void

);

66

arg_desc->SetUsageContext(

GetArguments

().GetProgramBasename(),

67  "Image read/write test application"

);

69

arg_desc->AddDefaultPositional(

"image"

,

"Image to crop"

,

103  default

: ostr <<

"(unknown format), "

;

break

;

106

ostr << width <<

"x"

<< height;

109  case

2: ostr <<

", b&w"

;

break

;

110  case

3: ostr <<

", rgb"

;

break

;

111  case

4: ostr <<

", rgba"

;

break

;

112  default

: ostr <<

", unknown format"

;

break

;

135 int main

(

int

argc,

const char

* argv[])

virtual void Init(void)

Initialize the application.

virtual int Run(void)

Run the application.

virtual void Exit(void)

Cleanup on application exit.

static bool ReadImageInfo(const string &file, size_t *width, size_t *height, size_t *depth, EType *type)

read just the image information

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

static unsigned char depth[2 *(256+1+29)+1]

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.

@ fBinary

Open as binary file; for eInputFile, eOutputFile, eIOFile.

@ eInputFile

Name of file (must exist and be readable)

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

IO_PREFIX::istream CNcbiIstream

Portable alias for istream.

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

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

Defines command line argument related classes.

Defines unified interface to application:

Process information in the NCBI Registry, including working with configuration files.

Defines: CTimeFormat - storage class for time format.


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