summaryrefslogtreecommitdiff
path: root/tester/covoar/CoverageReaderBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'tester/covoar/CoverageReaderBase.h')
-rw-r--r--tester/covoar/CoverageReaderBase.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/tester/covoar/CoverageReaderBase.h b/tester/covoar/CoverageReaderBase.h
new file mode 100644
index 0000000..bf59f88
--- /dev/null
+++ b/tester/covoar/CoverageReaderBase.h
@@ -0,0 +1,48 @@
+/*! @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 char* const file,
+ ExecutableInfo* const executableInformation
+ ) = 0;
+ };
+
+}
+#endif