diff options
Diffstat (limited to '')
-rw-r--r-- | src/viewerplainpct.h | 45 |
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 | |||
8 | class ViewerPlainPct : public Viewer | ||
9 | { | ||
10 | public: | ||
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 | |||
30 | private: | ||
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 | ||