summaryrefslogblamecommitdiffstats
path: root/tester/covoar/TraceReaderBase.h
blob: cbb9a62023c0ab55d6ab4928dc3289def9a2f290 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                      

                 
                      
                             

















                                                              
       



                                                          
       








                                                                      
                                                                     



                                                                            
                                       
                                                  




          
/*! @file TraceReaderBase.h
 *  @brief TraceReaderBase Specification
 *
 *  This file contains the specification of the TraceReaderBase class.
 */

#ifndef __TRACE_READER_BASE_H__
#define __TRACE_READER_BASE_H__

#include <string>

#include "TraceList.h"
#include "ObjdumpProcessor.h"

namespace Trace {

  /*! @class TraceReaderBase
   *
   *  This is the specification of the TraceReader base class.
   *  All TraceReader implementations inherit from this class.
   */
  class TraceReaderBase {

  public:

    /*!
     *  Trace list that is filled by processFile.
     */
    TraceList Trace;


    /*!
     *  This method constructs a TraceReaderBase instance.
     */
    TraceReaderBase();

    /*!
     *  This method destructs a TraceReaderBase instance.
     */
    virtual ~TraceReaderBase();

    /*!
     *  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] objdumpProcessor the processor for the object dump
     *
     *  @return Returns TRUE if the method succeeded and FALSE if it failed.
     */
    virtual bool processFile(
      const std::string&          file,
      Coverage::ObjdumpProcessor& objdumpProcessor
    ) = 0;
  };

}
#endif