CMake
This commit is contained in:
19
src/siadrive_api/debugconsumer.cpp
Normal file
19
src/siadrive_api/debugconsumer.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <debugconsumer.h>
|
||||
#include <eventsystem.h>
|
||||
|
||||
using namespace Sia::Api;
|
||||
|
||||
CDebugConsumer::CDebugConsumer()
|
||||
{
|
||||
CEventSystem::EventSystem.AddEventConsumer([this](const CEvent& event) { this->ProcessEvent(event); });
|
||||
}
|
||||
|
||||
CDebugConsumer::~CDebugConsumer()
|
||||
{
|
||||
}
|
||||
|
||||
void CDebugConsumer::ProcessEvent(const CEvent& eventData)
|
||||
{
|
||||
OutputDebugString(eventData.GetSingleLineMessage().str().c_str());
|
||||
OutputDebugString(L"\n");
|
||||
}
|
19
src/siadrive_api/loggingconsumer.cpp
Normal file
19
src/siadrive_api/loggingconsumer.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <loggingconsumer.h>
|
||||
#include <eventsystem.h>
|
||||
|
||||
using namespace Sia::Api;
|
||||
|
||||
CLoggingConsumer::CLoggingConsumer()
|
||||
{
|
||||
CEventSystem::EventSystem.AddEventConsumer([=](const CEvent& event) {this->ProcessEvent(event); });
|
||||
}
|
||||
|
||||
|
||||
CLoggingConsumer::~CLoggingConsumer()
|
||||
{
|
||||
}
|
||||
|
||||
void CLoggingConsumer::ProcessEvent(const CEvent& eventData)
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user