blob: 7064b8d03b8eca370b39c55f19cf6cd8ee70d71f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/*! @file CoverageReaderBase.h
* @brief CoverageReaderBase Specification
*
* This file contains the specification of the CoverageReaderBase class.
*/
#ifndef __COVERAGE_READER_BASE_H__
#define __COVERAGE_READER_BASE_H__
#include "ExecutableInfo.h"
namespace Coverage {
/*! @class CoverageReaderBase
*
* This is the specification of the CoverageReader base class.
* All CoverageReader implementations inherit from this class.
*/
class CoverageReaderBase {
public:
/*!
* This method constructs a CoverageReaderBase instance.
*/
CoverageReaderBase();
/*!
* This method destructs a CoverageReaderBase instance.
*/
virtual ~CoverageReaderBase();
/*!
* This method processes the coverage information from the input
* @a file and adds it to the specified @a executableInformation.
*
* @param[in] file is the coverage file to process
* @param[in] executableInformation is the information for an
* associated executable
*/
virtual void processFile(
const std::string& file,
ExecutableInfo* const executableInformation
) = 0;
/*!
* This method retrieves the branchInfoAvailable_m variable
*/
bool getBranchInfoAvailable() const;
/*!
* This member variable tells whether the branch info is available.
*/
bool branchInfoAvailable_m = false;
/*!
* This member variable points to the target's info
*/
std::shared_ptr<Target::TargetBase> targetInfo_m = nullptr;
};
}
#endif
|