aboutsummaryrefslogtreecommitdiff
path: root/src/viewerplainpct.h
blob: 5a57ef0eeec4683208a676a4e6b3dad1a62fcf61 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef VIEWER_PLAIN_H
#define VIEWER_PLAIN_H

#include <stdint.h>
#include <list>
#include "viewer.h"

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

	virtual void beginCommand( Action::eAction nAct, const std::string &sTarget );
	virtual void endCommand();

	virtual void beginRequiresCheck( bool bCached, const std::string &sName );
	virtual void endRequiresCheck();
	virtual void beginPerform( Perform *pPerform );
	virtual void endPerform();
	virtual void beginPerforms( int nCount );

	virtual void beginAction( const std::string &sName, int nCommands );

	virtual void endAction();

	void printHead();
	void indent();

private:
	bool bDidReq;
	int iTP, iCP, iTC, iCC;
	
	bool bRunClean;
	typedef struct
	{
		int nLevel;
		bool bCmdClean;
		std::string sTarget;
	} Cmd;
	typedef std::list<Cmd> CmdStack;
	CmdStack sCmd;
};

#endif