home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Divers
/
lyx-0.13.2.tar.gz
/
lyx-0.13.2.tar
/
lyx-0.13.2
/
src
/
error.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-23
|
1KB
|
78 lines
// -*- C++ -*-
#ifndef _ERROR_H_
#define _ERROR_H_
#ifdef __GNUG__
#pragma interface
#endif
#include "LString.h"
///
class Error
{
public:
///
enum DEBUG_LEVELS {
///
INFO = (1), // 1
///
INIT = (1 << 1), // 2
///
KEY = (1 << 2), // 4
///
TOOLBAR = (1 << 3), // 8
///
PARSER = (1 << 4), // 16
///
LYXRC = (1 << 5), // 32
///
KBMAP = (1 << 6), // 64
///
LATEX = (1 << 7), // 128
///
MATHED = (1 << 8), // 256 // Alejandro, please use this.
///
FONT = (1 << 9), // 512
///
TCLASS = (1 << 10), // 1024
///
LYXVC = (1 << 11), // 2048
///
LYXSERVER = (1 << 12), // 4096
///
ANY = (65535) // 2^16-1
};
///
Error(int level = 0);
///
void setDebugLevel(char *);
///
void showTags();
/// Not implemented yet.
void setLogLevel(int level);
/// Not implemented yet.
void setLogFile(LString const & filename);
///
void debug(LString const & msg, int level = INFO);
///
bool debugging(int level = INFO)
{
return (bool)(debuglevel & level);
}
///
void print(LString const & msg);
protected:
private:
///
int debuglevel;
///
int loglevel;
};
/// The global instance of the Error class.
extern Error lyxerr;
#endif