aboutsummaryrefslogtreecommitdiff
path: root/src/viewerpercent.h
blob: d5759400cbf52103b15baaa883c467511536b275 (plain)
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
#ifndef VIEWER_PERCENT_H
#define VIEWER_PERCENT_H

#include <stdint.h>

#include "viewer.h"
#include "staticstring.h"

class ViewerPercent : public Viewer
{
public:
	ViewerPercent();
	virtual ~ViewerPercent();

	virtual void beginTarget( const char *sName, const char *sType, const char *sOperation, int nPerforms );
	virtual void endTarget();

	virtual void beginPerform( Perform *pPerf );
	virtual void beginExecute();
	virtual void endPerform();

private:
	class StaticString sTarget;
	int nLastLen;
	int nWidth;
	int nMax;
	int nCount;
};

#endif