-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoverageFactory.h
64 lines (56 loc) · 1.66 KB
/
CoverageFactory.h
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
64
/*! @file CoverageFactory.h
* @brief CoverageFactory Specification
*
* This file contains the specification of the CoverageFactory methods.
* This collection of methods is used to create CoverageReader and/or
* CoverageWriter instances for a particular coverage file format.
*/
#ifndef __COVERAGE_FACTORY_H__
#define __COVERAGE_FACTORY_H__
#include "CoverageReaderBase.h"
#include "CoverageWriterBase.h"
namespace Coverage {
/*!
* This type defines the coverage file formats that are supported.
*/
typedef enum {
COVERAGE_FORMAT_QEMU,
COVERAGE_FORMAT_RTEMS,
COVERAGE_FORMAT_SKYEYE,
COVERAGE_FORMAT_TSIM
} CoverageFormats_t;
/*!
* This method returns the coverage file format that corresponds
* to the specified string.
*
* @param[in] format is a string specifying the coverage file format
*
* @return Returns a coverage file format.
*/
CoverageFormats_t CoverageFormatToEnum(
const char* const format
);
/*!
* This method returns an instance of a Coverage File Reader class
* that corresponds to the specified coverage file format.
*
* @param[in] format specifies the coverage file format
*
* @return Returns a Coverage File Reader class instance.
*/
CoverageReaderBase* CreateCoverageReader(
CoverageFormats_t format
);
/*!
* This method returns an instance of a Coverage File Writer class
* that corresponds to the specified coverage file format.
*
* @param[in] format specifies the coverage file format
*
* @return Returns a Coverage File Writer class instance.
*/
CoverageWriterBase* CreateCoverageWriter(
CoverageFormats_t format
);
}
#endif