mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-15 01:28:36 +08:00
58 lines
1.5 KiB
C++
58 lines
1.5 KiB
C++
/*! @file CoverageWriterBase.h
|
|
* @brief CoverageWriterBase Specification
|
|
*
|
|
* This file contains the specification of the CoverageWriterBase class.
|
|
*/
|
|
|
|
#ifndef __COVERAGE_WRITER_BASE_H__
|
|
#define __COVERAGE_WRITER_BASE_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "CoverageMapBase.h"
|
|
|
|
namespace Coverage {
|
|
|
|
/*! @class CoverageWriterBase
|
|
*
|
|
* This is the specification of the CoverageWriter base class.
|
|
* All CoverageWriter implementations inherit from this class.
|
|
*/
|
|
class CoverageWriterBase {
|
|
|
|
public:
|
|
|
|
/*!
|
|
* This method constructs a CoverageWriterBase instance.
|
|
*/
|
|
CoverageWriterBase();
|
|
|
|
/*!
|
|
* This method destructs a CoverageWriterBase instance.
|
|
*/
|
|
virtual ~CoverageWriterBase();
|
|
|
|
/*!
|
|
* This method writes the @a coverage map for the specified
|
|
* address range and writes it to @file.
|
|
*
|
|
* @param[in] file specifies the name of the file to write
|
|
* @param[in] coverage specifies the coverage map to output
|
|
* @param[in] lowAddress specifies the lowest address in the
|
|
* coverage map to process
|
|
* @param[in] highAddress specifies the highest address in the
|
|
* coverage map to process
|
|
*
|
|
* @return Returns TRUE if the method succeeded and FALSE if it failed.
|
|
*/
|
|
virtual void writeFile(
|
|
const char* const file,
|
|
CoverageMapBase* coverage,
|
|
uint32_t lowAddress,
|
|
uint32_t highAddress
|
|
) = 0;
|
|
};
|
|
|
|
}
|
|
#endif
|