Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
500 Brean 1
#ifndef FLIGHTLOG_H
2
#define FLIGHTLOG_H
3
#include "Kopter.h"
4
#include "../typedefs.h"
5
#include <string>
6
 
7
#define USE_COLOR
8
#define ERROR_COLOR         COLOR_FG_DARKRED
9
#define WARNING_COLOR       COLOR_BG_LIGHTYELLOW
10
#define INFO_COLOR          COLOR_NORMAL
11
 
12
/**
13
 * The FlightLog saves a human-readable log, so that we can see, what happened.
14
 */
15
 
16
class FlightLog {
17
    private:
18
        //TODO: use a struct that contains timestamp and encoded data?
19
        static char * log_str;
20
 
21
    public:
22
        static void info(char * dat);
23
        static void warning(char * dat);
24
        static void error(char * dat);
25
};
26
 
27
#endif