source: rtems-tools/tester/covoar/CoverageWriterBase.h @ 3e187ba

5
Last change on this file since 3e187ba was 100f517, checked in by Chris Johns <chrisj@…>, on 05/09/14 at 11:50:37

covoar: Merger the covoar source from rtems-testing.git.

Use waf to build covoar.

  • 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 "CoverageMapBase.h"
13
14namespace Coverage {
15
16  /*! @class CoverageWriterBase
17   *
18   *  This is the specification of the CoverageWriter base class.
19   *  All CoverageWriter implementations inherit from this class.
20   */
21  class CoverageWriterBase {
22
23  public:
24
25    /*!
26     *  This method constructs a CoverageWriterBase instance.
27     */
28    CoverageWriterBase();
29
30    /*!
31     *  This method destructs a CoverageWriterBase instance.
32     */
33    virtual ~CoverageWriterBase();
34
35    /*!
36     *  This method writes the @a coverage map for the specified
37     *  address range and writes it to @file.
38     *
39     *  @param[in] file specifies the name of the file to write
40     *  @param[in] coverage specifies the coverage map to output
41     *  @param[in] lowAddress specifies the lowest address in the
42     *             coverage map to process
43     *  @param[in] highAddress specifies the highest address in the
44     *             coverage map to process
45     *
46     *  @return Returns TRUE if the method succeeded and FALSE if it failed.
47     */
48    virtual void writeFile(
49      const char* const file,
50      CoverageMapBase*  coverage,
51      uint32_t          lowAddress,
52      uint32_t          highAddress
53    ) = 0;
54  };
55
56}
57#endif
Note: See TracBrowser for help on using the repository browser.