From 36242ee4f2c24352c547d266a311305007111ac9 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 26 Dec 2006 19:59:58 +0000 Subject: david - woops, forgot to add --- src/viewercolorpct.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/viewercolorpct.h (limited to 'src/viewercolorpct.h') 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 @@ +#ifndef VIEWER_COLOR_PCT_H +#define VIEWER_COLOR_PCT_H + +#include +#include +#include "viewer.h" + +class ViewerColorPct : public Viewer +{ +public: + ViewerColorPct(); + virtual ~ViewerColorPct(); + + 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 skipRequiresCheck( bool bCached, const std::string &sName ); + virtual void skipPerform( Perform *pPerform ); + + virtual void beginAction( const std::string &sName, int nCommands ); + + virtual void endAction(); + + void printPerform(const char *sRule, const char *sTarget); + void printHead(); + void indent(); + +private: + int iTC, iCC; + + bool bRunClean; + typedef struct + { + int nLevel; + bool bCmdClean; + std::string sTarget; + int iTP, iCP; + } Cmd; + typedef std::list CmdStack; + CmdStack sCmd; +}; + +#endif -- cgit v1.2.3