mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
29 lines
380 B
C++
29 lines
380 B
C++
#ifndef DEBUG_HPP_
|
|
#define DEBUG_HPP_
|
|
|
|
#include <cstdio>
|
|
|
|
class Debug {
|
|
public:
|
|
Debug();
|
|
~Debug();
|
|
|
|
void set_level(int level);
|
|
FILE* set_file(char* file);
|
|
void print(int level, const char *fmt, ...);
|
|
|
|
static const int ERROR = 0;
|
|
static const int INFO = 1;
|
|
static const int VERBOSE = 2;
|
|
|
|
private:
|
|
char* file_;
|
|
int level_;
|
|
FILE* fp_;
|
|
|
|
};
|
|
|
|
extern Debug sub_debug;
|
|
|
|
#endif
|