From 4ab0bf24ac9634a12a4a518edecae1d42fa331d9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 2 Aug 2006 08:04:19 +0000 Subject: Fixed a few minor bugs and added the new viewer system, it allows you to add new front ends that will display what build is doing in any way you want. cool! So far we have plain and percent, verbose and make are coming, make should be really easy, just print out the commands and nothing else. --- src/viewer.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/viewer.h (limited to 'src/viewer.h') diff --git a/src/viewer.h b/src/viewer.h new file mode 100644 index 0000000..8f2a595 --- /dev/null +++ b/src/viewer.h @@ -0,0 +1,33 @@ +#ifndef VIEWER_H +#define VIEWER_H + +#include + +class Perform; + +class Viewer +{ +public: + Viewer(); + virtual ~Viewer(); + + virtual void beginAction( const char *sName, int nCommands ); + virtual void endAction(); + virtual void beginTarget( const char *sName, const char *sType, const char *sOperation, int nPerforms ); + virtual void endTarget(); + + virtual void beginPerform( Perform *pPerf ); + virtual void beginRequiresCheck( bool bCached, const char *sName ); + virtual void endRequiresCheck(); + virtual void beginExtraRequiresCheck( const char *sCommand ); + virtual void endExtraRequiresCheck(); + virtual void beginExecute(); + virtual void executeCmd( const char *sCmd ); + virtual void endExecute(); + virtual void endPerform(); + +private: + +}; + +#endif -- cgit v1.2.3