source: rtems-tools/tester/covoar/TraceWriterQEMU.h @ fb987e8

5
Last change on this file since fb987e8 was 6a4859e, checked in by Cillian O'Donnell <cpodonnell8@…>, on 08/26/17 at 08:15:56

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.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*! @file TraceWriterQEMU.h
2 *  @brief TraceWriterQEMU Specification
3 *
4 *  This file contains the specification of the TraceWriterQEMU class.
5 */
6
7#ifndef __TRACE_WRITER_QEMU_H__
8#define __TRACE_WRITER_QEMU_H__
9
10#include <stdint.h>
11#include "TraceReaderBase.h"
12#include "TraceWriterBase.h"
13
14#include "rld-process.h"
15
16namespace Trace {
17
18  /*! @class TraceWriterQEMU
19   *
20   *  This is the specification of the TraceWriter base class.
21   *  All TraceWriter implementations inherit from this class.
22   */
23  class TraceWriterQEMU: public TraceWriterBase {
24
25  public:
26
27    /*!
28     *  This method constructs a TraceWriterQEMU instance.
29     */
30    TraceWriterQEMU();
31
32    /*!
33     *  This method destructs a TraceWriterQEMU instance.
34     */
35    virtual ~TraceWriterQEMU();
36
37    /*!
38     *  This method writes the specified @a trace file.
39     *
40     *  @param[in] file specifies the name of the file to write
41     *  @param[in] log structure where the trace data was read into
42     *
43     *  @return Returns TRUE if the method succeeded and FALSE if it failed.
44     */
45     bool writeFile(
46       const char* const          file,
47       Trace::TraceReaderBase    *log
48     );
49  };
50
51}
52#endif
Note: See TracBrowser for help on using the repository browser.