31 lines
699 B
C
31 lines
699 B
C
![]() |
// Copyright (c) 2008-2010 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones
|
||
|
// This file is part of the "cAudio Engine"
|
||
|
// For conditions of distribution and use, see copyright notice in cAudio.h
|
||
|
|
||
|
#ifndef CFILELOGRECEIVER_H_INCLUDED
|
||
|
#define CFILELOGERCEIVER_H_INCLUDED
|
||
|
|
||
|
#include "../include/ILogReceiver.h"
|
||
|
#include <string>
|
||
|
#include <list>
|
||
|
|
||
|
namespace cAudio
|
||
|
{
|
||
|
|
||
|
class cFileLogReceiver : public ILogReceiver
|
||
|
{
|
||
|
public:
|
||
|
cFileLogReceiver();
|
||
|
~cFileLogReceiver();
|
||
|
|
||
|
bool OnLogMessage(const char* sender, const char* message, LogLevel level, float time);
|
||
|
void dumpMessages();
|
||
|
|
||
|
private:
|
||
|
std::list<std::string> logs;
|
||
|
std::list<int> levels;
|
||
|
|
||
|
};
|
||
|
};
|
||
|
|
||
|
#endif //!CFILELOGRECEIVER_H_INCLUDED
|