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

NCBI C++ ToolKit: src/app/cn3d/nowin_main.cpp Source File

55 #include <wx/msw/winundef.h> 58 #include <wx/filesys.h> 59 #include <wx/fs_zip.h> 77 #define ERRORTHROW(stream) do { \ 78  CNcbiOstrstream oss; \ 80  NCBI_THROW(CException, eUnknown, ((string) CNcbiOstrstreamToString(oss))); \ 86

diagMsg.

Write

(errMsg);

117  setenv

(

"MESA_NO_3DNOW"

,

"true"

, 1);

118  setenv

(

"MESA_NO_SSE"

,

"true"

, 1);

143

argDescr->

AddOptionalKey

(

"f"

,

"file"

,

"Ncbi-mime-asn1, Biostruc, or Cdd ASN.1 data file"

, argDescr->

eString

);

147

argDescr->

AddOptionalKey

(

"o"

,

"model"

,

"Model type to use for coordinates"

, argDescr->

eString

);

151

argDescr->

AddKey

(

"p"

,

"pngfile"

,

"Output PNG file name"

, argDescr->

eString

);

152

argDescr->

AddKey

(

"w"

,

"width"

,

"Output width in pixels"

, argDescr->

eInteger

);

153

argDescr->

AddKey

(

"h"

,

"height"

,

"Output height in pixels"

, argDescr->

eInteger

);

154

argDescr->

AddFlag

(

"i"

,

"Create interlaced PNG"

);

173  TRACEMSG

(

"Hello! Running build from "

<< __DATE__);

181  ERRORTHROW

(

"Command line: Must supply one (and only one) of -f or -d"

);

184  if

(args[

"o"

].AsString() ==

"alpha"

)

186  else if

(args[

"o"

].AsString() ==

"PDB"

)

195

wxString dictFile = wxString(

GetDataDir

().c_str()) +

"bstdt.val"

;

211  ERRORTHROW

(

"Failed to load Biostruc file "

<< args[

"f"

].AsString());

213  if

(!

LoadDataOnly

(&sset, &renderer, args[

"f"

].AsString().c_str(),

NULL

, favorite, model))

214  ERRORTHROW

(

"Failed to load file "

<< args[

"f"

].AsString());

222  ERRORTHROW

(

"Failed to load from network with id "

<< args[

"d"

].AsString());

226  ERRORTHROW

(

"Somehow ended up with NULL sset"

);

227

unique_ptr < StructureSet > sset_ap(sset);

230  if

(!

ExportPNG

(

NULL

, &renderer, args[

"p"

].AsString(), args[

"w"

].AsInteger(), args[

"h"

].AsInteger(), args[

"i"

].

HasValue

()))

236

}

catch

(ncbi::CException& ce) {

237  ERRORMSG

(

"Caught CException: "

<< ce.GetMsg());

238

}

catch

(std::exception& e) {

239  ERRORMSG

(

"Caught exception: "

<< e.what());

241  ERRORMSG

(

"Caught unknown exception"

);

251 int main

(

int

argc,

char

*argv[])

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

void LoadStandardDictionary(const char *filename)

void DeleteStandardDictionary(void)

void Exit(void)

Cleanup on application exit.

void Init(void)

Initialize the application.

int Run(void)

Run the application.

CNcbi_mime_asn1 * LoadStructureViaCache(const std::string &uid, ncbi::objects::EModel_type modelType, int assemblyId)

bool ExportPNG(Cn3DGLCanvas *glCanvas, OpenGLRenderer *renderer, const string &outputFilename, int outputWidth, int outputHeight, bool interlaced)

Include a standard set of the NCBI C++ Toolkit most basic headers.

CNcbi_mime_asn1 * CreateMimeFromBiostruc(const string &filename, EModel_type model)

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.

void AddFlag(const string &name, const string &comment, CBoolEnum< EFlagValue > set_value=eFlagHasValueIfSet, TFlags flags=0)

Add description for flag argument.

void SetConstraint(const string &name, const CArgAllow *constraint, EConstraintNegate negate=eConstraint)

Set additional user defined constraint on argument value.

void AddKey(const string &name, const string &synopsis, const string &comment, EType type, TFlags flags=0)

Add description for mandatory key.

void SetUsageContext(const string &usage_name, const string &usage_description, bool usage_sort_args=false, SIZE_TYPE usage_width=78)

Set extra info to be used by PrintUsage().

void AddOptionalKey(const string &name, const string &synopsis, const string &comment, EType type, TFlags flags=0)

Add description for optional key without default value.

@ eString

An arbitrary string.

@ eInteger

Convertible into an integer number (int or Int8)

void Write(string &str, TDiagWriteFlags flags=fNone) const

Binary OR of "EDiagWriteFlags".

void SetDiagPostFlag(EDiagPostFlag flag)

Set the specified flag (globally).

EDiagSev m_Severity

Severity level.

void UnsetDiagTraceFlag(EDiagPostFlag flag)

EDiagSev SetDiagPostLevel(EDiagSev post_sev=eDiag_Error)

Set the threshold severity for posting the messages.

void SetDiagHandler(CDiagHandler *handler, bool can_delete=true)

Set the diagnostic handler using the specified diagnostic handler class.

void SetDiagTrace(EDiagTrace how, EDiagTrace dflt=eDT_Default)

Set the diagnostic trace settings.

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

Set diagnostic stream.

@ eDPF_Location

Include class and function if any.

@ eDPF_File

File name (not full path)

@ eDS_Default

Try standard log file (app.name + ".log") in /log/, use stderr on failure.

@ eDT_Default

Restores the default tracing context.

@ eDiag_Trace

Trace message.

@ eDiag_Info

Informational message.

@ eDiag_Error

Error message.

static void SetVerifyDataGlobal(ESerialVerifyData verify)

@ eSerialVerifyData_Always

always verify (even if set not to later on)

static void SetVerifyDataGlobal(ESerialVerifyData verify)

Set up default output data verification for streams created by the current process.

static void SetVerifyDataGlobal(ESerialVerifyData verify)

Set up default input data verification for streams created by the current process.

#define END_SCOPE(ns)

End the previously defined scope.

#define BEGIN_SCOPE(ns)

Define a new scope.

EModel_type

Access to EModel_type's attributes (values, names) as defined in spec.

@ eModel_type_ncbi_all_atom

@ eModel_type_ncbi_backbone

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

#define GetProgramName

Avoid name clash with the NCBI C Toolkit.

Defines: CTimeFormat - storage class for time format.

#define ERRORTHROW(stream)

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

void DisplayDiagnostic(const SDiagMessage &diagMsg)

void RaiseLogWindow(void)

void SetDialogSevereErrors(bool)

wxFrame * GlobalTopWindow(void)

bool IsWindowedMode(void)

bool LoadDataOnly(StructureSet **sset, OpenGLRenderer *renderer, const char *filename, CNcbi_mime_asn1 *mimeData, const string &favoriteStyle, EModel_type model, StructureWindow *window)


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