1
0
This repository has been archived on 2025-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
Files
siadrive/SiaDrive.Api/DebugConsumer.cpp
Scott E. Graves ba5c089b43 More stuffs
2017-02-23 17:38:04 -06:00

20 lines
409 B
C++

#include "stdafx.h"
#include "DebugConsumer.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().c_str());
OutputDebugString(L"\n");
}