- initial commit
git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@2 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#ifndef _LOGCOMPONENT_H_
|
||||
#define _LOGCOMPONENT_H_
|
||||
|
||||
#include "JuceHeader.h"
|
||||
|
||||
// ---------------------------------------------------
|
||||
class LogHandler
|
||||
{
|
||||
public:
|
||||
LogHandler() {}
|
||||
virtual ~LogHandler() {}
|
||||
virtual void handleMessage(String msg) = 0;
|
||||
|
||||
};
|
||||
|
||||
class LogComponent
|
||||
{
|
||||
public:
|
||||
LogComponent(LogHandler *pLogHandler);
|
||||
~LogComponent(void);
|
||||
|
||||
void log(const char* format, ...);
|
||||
|
||||
private:
|
||||
LogHandler *m_pLogHandler;
|
||||
};
|
||||
|
||||
#endif // _LOGCOMPONENT_H_
|
||||
Reference in New Issue
Block a user