aboutsummaryrefslogtreecommitdiff
path: root/src/viewerplainpct.h
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2006-11-03 21:12:51 +0000
committerDavid <david@xagasoft.com>2006-11-03 21:12:51 +0000
commit863a1f4ce1d7b70f9a73edb16b0de1c753087152 (patch)
tree7b344101a1d8bb5d49ffd2a16b2782612a9b9471 /src/viewerplainpct.h
parente270362ceacad49a72cf46394fcb5f010acc41f9 (diff)
downloadbuild-863a1f4ce1d7b70f9a73edb16b0de1c753087152.tar.gz
build-863a1f4ce1d7b70f9a73edb16b0de1c753087152.tar.bz2
build-863a1f4ce1d7b70f9a73edb16b0de1c753087152.tar.xz
build-863a1f4ce1d7b70f9a73edb16b0de1c753087152.zip
david - percent viewer.
Diffstat (limited to '')
-rw-r--r--src/viewerplainpct.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/viewerplainpct.h b/src/viewerplainpct.h
new file mode 100644
index 0000000..5a57ef0
--- /dev/null
+++ b/src/viewerplainpct.h
@@ -0,0 +1,45 @@
1#ifndef VIEWER_PLAIN_H
2#define VIEWER_PLAIN_H
3
4#include <stdint.h>
5#include <list>
6#include "viewer.h"
7
8class ViewerPlainPct : public Viewer
9{
10public:
11 ViewerPlainPct();
12 virtual ~ViewerPlainPct();
13
14 virtual void beginCommand( Action::eAction nAct, const std::string &sTarget );
15 virtual void endCommand();
16
17 virtual void beginRequiresCheck( bool bCached, const std::string &sName );
18 virtual void endRequiresCheck();
19 virtual void beginPerform( Perform *pPerform );
20 virtual void endPerform();
21 virtual void beginPerforms( int nCount );
22
23 virtual void beginAction( const std::string &sName, int nCommands );
24
25 virtual void endAction();
26
27 void printHead();
28 void indent();
29
30private:
31 bool bDidReq;
32 int iTP, iCP, iTC, iCC;
33
34 bool bRunClean;
35 typedef struct
36 {
37 int nLevel;
38 bool bCmdClean;
39 std::string sTarget;
40 } Cmd;
41 typedef std::list<Cmd> CmdStack;
42 CmdStack sCmd;
43};
44
45#endif