source: rtems-tools/tester/covoar/CoverageWriterBase.h

Last change on this file was ebf8231, checked in by Ryan Long <ryan.long@…>, on 07/09/21 at 19:47:18

CoverageWriterBase?.h: Fix formatting

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*! @file CoverageWriterBase.h
2 *  @brief CoverageWriterBase Specification
3 *
4 *  This file contains the specification of the CoverageWriterBase class.
5 */
6
7#ifndef __COVERAGE_WRITER_BASE_H__
8#define __COVERAGE_WRITER_BASE_H__
9
10#include <stdint.h>
11
12#include <string>
13
14#include "CoverageMapBase.h"
15
16namespace Coverage {
17
18  /*! @class CoverageWriterBase
19   *
20   *  This is the specification of the CoverageWriter base class.
21   *  All CoverageWriter implementations inherit from this class.
22   */
23  class CoverageWriterBase {
24
25  public:
26
27    /*!
28     *  This method constructs a CoverageWriterBase instance.
29     */
30    CoverageWriterBase();
31
32    /*!
33     *  This method destructs a CoverageWriterBase instance.
34     */
35    virtual ~CoverageWriterBase();
36
37    /*!
38     *  This method writes the @a coverage map for the specified
39     *  address range and writes it to @file.
40     *
41     *  @param[in] file specifies the name of the file to write
42     *  @param[in] coverage specifies the coverage map to output
43     *  @param[in] lowAddress specifies the lowest address in the
44     *             coverage map to process
45     *  @param[in] highAddress specifies the highest address in the
46     *             coverage map to process
47     *
48     *  @return Returns TRUE if the method succeeded and FALSE if it failed.
49     */
50    virtual void writeFile(
51      const std::string& file,
52      CoverageMapBase*   coverage,
53      uint32_t           lowAddress,
54      uint32_t           highAddress
55    ) = 0;
56  };
57
58}
59#endif
Note: See TracBrowser for help on using the repository browser.