This class stores program settings, constants & static functions
This class stores program settings, constants & static functions.Settings that are loaded from blastrc file:
url (blasthost), port number, CGI script name and comment file name.
Settings that are read from command line:
"quiet" flag (-q), "sequence details" flag (-seqdet).
Other: temp. file name to store query result, map of database names and codes.BlastConfig provides Java-style accessor methods: getXXX/setXXX/isXXX.
It is static so we don't need an object to call it.
int pdb
int gb
int gi
int sp
int pir
int emb
int dbj
int prf
int ref
int none
int NumCols
string strFlag
string endFlag
int MaxXEntries
int lengthOffset
string getName( const string& code )
It is overloaded to accept either string (code)
or int (index) parameter (pdb..none).
int getNameIdx( const string& name )
string getCode( const string& name )
It is overloaded to accept either string (name)
or int (index) parameter (pdb..none).
int getCodeIdx( const string& code )
char* getBlastHost() const
char* getBlastProg() const
unsigned getBlastPort() const
char* getCommentFile() const
char* getQueryFile() const
bool isQuiet() const
void setQuiet( bool q )
bool isSeqDet() const
void setSeqDet( bool q )
DataValueNode::ValType findNeededQuoteStyle( const string& searchme )
Quote styles are defined in starlib (ast.h), they're just
an enum of none, single quote, double quote or semicolon
(for multi-line entries).
blastConfig()
Set blast host, program etc. to compile-time defaults,
try opening blastrc file and read new values from it,
see if TMPDIR envvar is set,
and set temporary file to $TMPDIR/blast_out,
otherwise set it to P_tmpdir/blast_out
(P_tmpdir is defined in stdio.h)
Alphabetic index Hierarchy of classes