34 #ifndef ALGO_BLAST_CORE__BLAST_MESSAGE__H
35 #define ALGO_BLAST_CORE__BLAST_MESSAGE__H
119 #define Blast_PerrorWithLocation(msg, error_code, context) \
120 Blast_PerrorEx(msg, error_code, __FILE__, __LINE__, context)
143 #define BLASTERR_MEMORY 50
146 #define BLASTERR_INVALIDPARAM 75
149 #define BLASTERR_IDEALSTATPARAMCALC 100
153 #define BLASTERR_REDOALIGNMENTCORE_NOTSUPPORTED 101
156 #define BLASTERR_INVALIDQUERIES 102
159 #define BLASTERR_INTERRUPTED 103
162 #define BLASTERR_NOVALIDKARLINALTSCHUL 104
165 #define BLASTERR_OPTION_PROGRAM_INVALID 201
168 #define BLASTERR_OPTION_VALUE_INVALID 202
171 #define BLASTERR_SUBJECT_LENGTH_INVALID 203
174 #define BLASTERR_SEQSRC 300
177 #define BLASTERR_DB_MEMORY_MAP 400
178 #define BLASTERR_DB_OPEN_FILES 401
Defines to provide correct exporting from BLAST DLL in Windows.
#define NCBI_XBLAST_EXPORT
NULL operations for other cases.
const char * kBlastErrMsg_CantCalculateUngappedKAParams
EBlastSeverity
Blast error message severities .
struct SMessageOrigin SMessageOrigin
Structure to enclose the origin of an error message or warning.
void Blast_PerrorEx(Blast_Message **msg, Int2 error_code, const char *file_name, int lineno, int context)
Extended version of Blast_Perror which includes parameters for the file name and line number where th...
void Blast_Perror(Blast_Message **msg, Int2 error_code, int context)
Analogous to perror.
Int2 Blast_MessagePost(Blast_Message *blast_msg)
Print a message with ErrPostEx.
struct Blast_Message Blast_Message
Structure to hold the a message from the core of the BLAST engine.
Int2 Blast_MessageWrite(Blast_Message **blast_msg, EBlastSeverity severity, int context, const char *message)
Writes a message to a structure.
const int kBlastMessageNoContext
Declared in blast_message.h as extern const.
Blast_Message * Blast_MessageFree(Blast_Message *blast_msg)
Deallocates message memory.
int16_t Int2
2-byte (16-bit) signed integer
Type and macro definitions from C toolkit that are not defined in C++ toolkit.
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
Structure to hold the a message from the core of the BLAST engine.
int context
Context, allows us to print message for query number.
EBlastSeverity severity
severity code
SMessageOrigin * origin
Optional: origin of the message.
char * message
User message to be saved.
struct Blast_Message * next
next message in this list
Structure to enclose the origin of an error message or warning.
int lineno
Line number in the file above.
char * filename
Name of the file.
static CS_CONTEXT * context