diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-02 08:04:19 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-02 08:04:19 +0000 |
commit | 4ab0bf24ac9634a12a4a518edecae1d42fa331d9 (patch) | |
tree | 75b386895c987bd6f8575140d8c6aa48318ece96 /src/viewer.h | |
parent | 062fcfb96c56ecfb69b8c3162ced65b63e863752 (diff) | |
download | build-4ab0bf24ac9634a12a4a518edecae1d42fa331d9.tar.gz build-4ab0bf24ac9634a12a4a518edecae1d42fa331d9.tar.bz2 build-4ab0bf24ac9634a12a4a518edecae1d42fa331d9.tar.xz build-4ab0bf24ac9634a12a4a518edecae1d42fa331d9.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/viewer.h | 33 |
1 files changed, 33 insertions, 0 deletions
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 @@ | |||
1 | #ifndef VIEWER_H | ||
2 | #define VIEWER_H | ||
3 | |||
4 | #include <stdint.h> | ||
5 | |||
6 | class Perform; | ||
7 | |||
8 | class Viewer | ||
9 | { | ||
10 | public: | ||
11 | Viewer(); | ||
12 | virtual ~Viewer(); | ||
13 | |||
14 | virtual void beginAction( const char *sName, int nCommands ); | ||
15 | virtual void endAction(); | ||
16 | virtual void beginTarget( const char *sName, const char *sType, const char *sOperation, int nPerforms ); | ||
17 | virtual void endTarget(); | ||
18 | |||
19 | virtual void beginPerform( Perform *pPerf ); | ||
20 | virtual void beginRequiresCheck( bool bCached, const char *sName ); | ||
21 | virtual void endRequiresCheck(); | ||
22 | virtual void beginExtraRequiresCheck( const char *sCommand ); | ||
23 | virtual void endExtraRequiresCheck(); | ||
24 | virtual void beginExecute(); | ||
25 | virtual void executeCmd( const char *sCmd ); | ||
26 | virtual void endExecute(); | ||
27 | virtual void endPerform(); | ||
28 | |||
29 | private: | ||
30 | |||
31 | }; | ||
32 | |||
33 | #endif | ||