aboutsummaryrefslogtreecommitdiff
path: root/src/viewercolorpct.h
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2006-12-26 19:59:58 +0000
committerDavid <david@xagasoft.com>2006-12-26 19:59:58 +0000
commit36242ee4f2c24352c547d266a311305007111ac9 (patch)
tree62c82e6180aff763793f9eeb39775ab84d8fe76b /src/viewercolorpct.h
parente7c032338901274425b8d87a527d6aee57711745 (diff)
downloadbuild-36242ee4f2c24352c547d266a311305007111ac9.tar.gz
build-36242ee4f2c24352c547d266a311305007111ac9.tar.bz2
build-36242ee4f2c24352c547d266a311305007111ac9.tar.xz
build-36242ee4f2c24352c547d266a311305007111ac9.zip
david - woops, forgot to add
Diffstat (limited to '')
-rw-r--r--src/viewercolorpct.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/viewercolorpct.h b/src/viewercolorpct.h
new file mode 100644
index 0000000..dc810c1
--- /dev/null
+++ b/src/viewercolorpct.h
@@ -0,0 +1,49 @@
1#ifndef VIEWER_COLOR_PCT_H
2#define VIEWER_COLOR_PCT_H
3
4#include <stdint.h>
5#include <list>
6#include "viewer.h"
7
8class ViewerColorPct : public Viewer
9{
10public:
11 ViewerColorPct();
12 virtual ~ViewerColorPct();
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 skipRequiresCheck( bool bCached, const std::string &sName );
24 virtual void skipPerform( Perform *pPerform );
25
26 virtual void beginAction( const std::string &sName, int nCommands );
27
28 virtual void endAction();
29
30 void printPerform(const char *sRule, const char *sTarget);
31 void printHead();
32 void indent();
33
34private:
35 int iTC, iCC;
36
37 bool bRunClean;
38 typedef struct
39 {
40 int nLevel;
41 bool bCmdClean;
42 std::string sTarget;
43 int iTP, iCP;
44 } Cmd;
45 typedef std::list<Cmd> CmdStack;
46 CmdStack sCmd;
47};
48
49#endif