serialoutput: consistent plugin class naming

Change-Id: I8abe0cfdebecb0adc7229e29bd241da65b27105a
This commit is contained in:
Horst Schirmeier
2014-02-14 19:52:23 +01:00
parent 36ae6fd6c3
commit c319f3458c
4 changed files with 14 additions and 14 deletions

View File

@ -0,0 +1,26 @@
#include "SerialOutputLogger.hpp"
#include "sal/Listener.hpp"
using namespace std;
using namespace fail;
bool SerialOutputLogger::run()
{
IOPortListener ev_ioport(m_port, m_out);
while (true) {
simulator.addListener(&ev_ioport);
simulator.resume();
m_output += ev_ioport.getData();
}
return true;
}
void SerialOutputLogger::resetOutput()
{
m_output.clear();
}
string SerialOutputLogger::getOutput()
{
return m_output;
}