summaryrefslogtreecommitdiffstats
path: root/covoar/CoverageReaderBase.h
blob: 95db9d3f5fd88d02cb7e147cb7d876a6a90701ed (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
/*
 *  $Id$
 */

/*! @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