00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MARSYAS_MRSLOG_H
00020 #define MARSYAS_MRSLOG_H 1
00021
00022 #include <sstream>
00023 #include <string>
00024 #include <cstdlib>
00025 #include "DLLDefines.h"
00026 #include "common_header.h"
00027
00028 namespace Marsyas
00029 {
00039 class marsyas_EXPORT MrsLog
00040 {
00041 static std::string fname_;
00042
00043
00044 public:
00045 static bool warnings_off_;
00046 static bool messages_off_;
00047
00048 static void setLogFile(std::string fname);
00049 static void getLogFile();
00050
00051 static void mrsMessage(const std::ostringstream& oss);
00052
00053 static void mrsErr(const std::ostringstream& oss);
00054 static void mrsWarning(const std::ostringstream& oss);
00055 static void mrsDiagnostic(const std::ostringstream& oss);
00056 static void mrsDebug(const std::ostringstream& oss);
00057 static void mrsAssert(const char *strFile, unsigned uLine);
00058 };
00059 }
00060
00061 #endif