Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

traces.h File Reference

#include <iostream>
#include <string>
#include <list>
#include "util.h"
#include "language.h"

Include dependency graph for traces.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  traces
 Class traces implements trace and error handling utilities. More...

Defines

#define SPLIT_TRACE   0x00000001
 possible values for MOD_TRACECODE
#define TOKEN_TRACE   0x00000002
#define MACO_TRACE   0x00000004
#define OPTIONS_TRACE   0x00000008
#define NUMBERS_TRACE   0x00000010
#define DATES_TRACE   0x00000020
#define PUNCT_TRACE   0x00000040
#define DICT_TRACE   0x00000080
#define SUFF_TRACE   0x00000100
#define LOCUT_TRACE   0x00000200
#define NP_TRACE   0x00000400
#define PROB_TRACE   0x00000800
#define QUANT_TRACE   0x00001000
#define NEC_TRACE   0x00002000
#define AUTOMAT_TRACE   0x00004000
#define TAGGER_TRACE   0x00008000
#define HMM_TRACE   0x00010000
#define RELAX_TRACE   0x00020000
#define RELAX_TAGGER_TRACE   0x00040000
#define CONST_GRAMMAR_TRACE   0x00080000
#define SENSES_TRACE   0x00100000
#define CHART_TRACE   0x00200000
#define GRAMMAR_TRACE   0x00400000
#define DEP_TRACE   0x00800000
#define UTIL_TRACE   0x01000000
#define ERROR_CRASH(msg)   traces::error_crash(msg,MOD_TRACENAME,MOD_TRACECODE)
 Macros that must be used to put traces in the code.
#define WARNING(msg)   traces::warning(msg,MOD_TRACENAME,MOD_TRACECODE)
#define TRACE(x, y)
 ifndef VERBOSE --> No messages displayed. Faster code.
#define TRACE_WORD_LIST(x, y)
#define TRACE_SENTENCE(x, y)
#define TRACE_SENTENCE_LIST(x, y)


Define Documentation

#define AUTOMAT_TRACE   0x00004000
 

#define CHART_TRACE   0x00200000
 

#define CONST_GRAMMAR_TRACE   0x00080000
 

#define DATES_TRACE   0x00000020
 

#define DEP_TRACE   0x00800000
 

#define DICT_TRACE   0x00000080
 

#define ERROR_CRASH msg   )     traces::error_crash(msg,MOD_TRACENAME,MOD_TRACECODE)
 

Macros that must be used to put traces in the code.

They may be either defined or null, depending on -DVERBOSE compilation flag.

#define GRAMMAR_TRACE   0x00400000
 

#define HMM_TRACE   0x00010000
 

#define LOCUT_TRACE   0x00000200
 

#define MACO_TRACE   0x00000004
 

#define NEC_TRACE   0x00002000
 

#define NP_TRACE   0x00000400
 

#define NUMBERS_TRACE   0x00000010
 

#define OPTIONS_TRACE   0x00000008
 

#define PROB_TRACE   0x00000800
 

#define PUNCT_TRACE   0x00000040
 

#define QUANT_TRACE   0x00001000
 

#define RELAX_TAGGER_TRACE   0x00040000
 

#define RELAX_TRACE   0x00020000
 

#define SENSES_TRACE   0x00100000
 

#define SPLIT_TRACE   0x00000001
 

possible values for MOD_TRACECODE

#define SUFF_TRACE   0x00000100
 

#define TAGGER_TRACE   0x00008000
 

#define TOKEN_TRACE   0x00000002
 

#define TRACE x,
 ) 
 

ifndef VERBOSE --> No messages displayed. Faster code.

Compile *without* -D VERBOSE to get a faster, non-traceable, exploitation version

#define TRACE_SENTENCE x,
 ) 
 

#define TRACE_SENTENCE_LIST x,
 ) 
 

#define TRACE_WORD_LIST x,
 ) 
 

#define UTIL_TRACE   0x01000000
 

#define WARNING msg   )     traces::warning(msg,MOD_TRACENAME,MOD_TRACECODE)
 


Generated on Wed Apr 26 12:57:22 2006 for FreeLing by  doxygen 1.4.4