aboutsummaryrefslogtreecommitdiff
path: root/src/viewerplain.h
blob: 118ae80ad2b1935dc76b6e7db3d759d921cbeb76 (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
#ifndef VIEWER_PLAIN_H
#define VIEWER_PLAIN_H

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

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

	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 endAction();

	void printHead();
	void indent();

private:
	bool bRunClean;
	typedef struct
	{
		int nLevel;
		bool bCmdClean;
		std::string sTarget;
	} Cmd;
	typedef std::list<Cmd> CmdStack;
	CmdStack sCmd;
};

#endif