Files
rtems-tools/tester/covoar/TraceWriterQEMU.h
Cillian O'Donnell 6a4859e627 covoar: Use rld tempfile and add signals to clean up in event of crash.
Use rld tempfile for temporary files and add fatal signal handling to clean
them up in the event of a crash.
2017-08-29 18:06:11 +10:00

53 lines
1.2 KiB
C++

/*! @file TraceWriterQEMU.h
* @brief TraceWriterQEMU Specification
*
* This file contains the specification of the TraceWriterQEMU class.
*/
#ifndef __TRACE_WRITER_QEMU_H__
#define __TRACE_WRITER_QEMU_H__
#include <stdint.h>
#include "TraceReaderBase.h"
#include "TraceWriterBase.h"
#include "rld-process.h"
namespace Trace {
/*! @class TraceWriterQEMU
*
* This is the specification of the TraceWriter base class.
* All TraceWriter implementations inherit from this class.
*/
class TraceWriterQEMU: public TraceWriterBase {
public:
/*!
* This method constructs a TraceWriterQEMU instance.
*/
TraceWriterQEMU();
/*!
* This method destructs a TraceWriterQEMU instance.
*/
virtual ~TraceWriterQEMU();
/*!
* This method writes the specified @a trace file.
*
* @param[in] file specifies the name of the file to write
* @param[in] log structure where the trace data was read into
*
* @return Returns TRUE if the method succeeded and FALSE if it failed.
*/
bool writeFile(
const char* const file,
Trace::TraceReaderBase *log
);
};
}
#endif