forked from dlidstrom/Duplo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
XMLGenerator.h
36 lines (28 loc) · 919 Bytes
/
XMLGenerator.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
#if!defined __XML_GENERATOR__
#define __XML_GENERATOR__
#include "IOutGenerator.h"
#include <iostream>
class XMLGenerator : public IOutGenerator
{
public:
XMLGenerator( std::ofstream & outfile );
virtual void writeHeader( unsigned int m_minBlockSize,
unsigned int m_minChars,
bool m_ignorePrepStuff,
bool m_ignoreSameFilename,
const std::string & version ) override;
virtual void reportSeq(int line1,
int line2,
int count,
const SourceFile& pSource1,
const SourceFile& pSource2 ) override;
virtual void writeSummary( int num_files,
int blocks_total,
int locks_total,
int num_duplicate_lines,
double duration
) override;
private:
std::ofstream & outfile_;
};
#endif