serialoutput: consistent plugin class naming

Change-Id: I8abe0cfdebecb0adc7229e29bd241da65b27105a
This commit is contained in:
Horst Schirmeier
2014-02-25 13:32:55 +01:00
parent 36ae6fd6c3
commit c319f3458c
4 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
set(PLUGIN_NAME serialoutput)
set(MY_PLUGIN_SRCS
SerialOutput.cc
SerialOutput.hpp
SerialOutputLogger.cc
SerialOutputLogger.hpp
)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
@@ -1,10 +1,10 @@
#include "SerialOutput.hpp"
#include "SerialOutputLogger.hpp"
#include "sal/Listener.hpp"
using namespace std;
using namespace fail;
bool SerialOutput::run()
bool SerialOutputLogger::run()
{
IOPortListener ev_ioport(m_port, m_out);
while (true) {
@@ -15,12 +15,12 @@ bool SerialOutput::run()
return true;
}
void SerialOutput::resetOutput()
void SerialOutputLogger::resetOutput()
{
m_output.clear();
}
string SerialOutput::getOutput()
string SerialOutputLogger::getOutput()
{
return m_output;
}
@@ -1,5 +1,5 @@
#ifndef __SERIAL_OUTPUT_HPP__
#define __SERIAL_OUTPUT_HPP__
#ifndef __SERIAL_OUTPUT_LOGGER_HPP__
#define __SERIAL_OUTPUT_LOGGER_HPP__
#include <string>
@@ -12,11 +12,11 @@
#endif
/**
* \class SerialOutput
* \class SerialOutputLogger
*
* \brief Plugin to record ioport traffic.
*/
class SerialOutput : public fail::ExperimentFlow
class SerialOutputLogger : public fail::ExperimentFlow
{
private:
@@ -33,7 +33,7 @@ public:
* \arg \c true Output on the given port is captured. This is default.
* \arg \c false Input on the given port is captured.
*/
SerialOutput(unsigned port, bool out = true) : m_out(out), m_port(port) { }
SerialOutputLogger(unsigned port, bool out = true) : m_out(out), m_port(port) { }
bool run();
/**
* Resets the output variable which contains the traffic of
@@ -46,4 +46,4 @@ public:
std::string getOutput();
};
#endif // __SERIAL_OUTPUT_HPP__
#endif // __SERIAL_OUTPUT_LOGGER_HPP__