diff options
Diffstat (limited to '')
-rw-r--r-- | src/build.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/src/build.h b/src/build.h index 080304b..31c8bde 100644 --- a/src/build.h +++ b/src/build.h | |||
@@ -14,6 +14,15 @@ | |||
14 | 14 | ||
15 | subExceptionDecl( BuildException ); | 15 | subExceptionDecl( BuildException ); |
16 | typedef std::map<std::string, std::string> VarMap; | 16 | typedef std::map<std::string, std::string> VarMap; |
17 | typedef std::map<std::string, Target *> TargetMap; | ||
18 | typedef std::list<std::string> StringList; | ||
19 | typedef std::map<std::string, StringList> ReqMap; | ||
20 | typedef std::map<std::string, VarMap> ContextMap; | ||
21 | typedef std::map<std::string, Rule *> RuleMap; | ||
22 | typedef std::list<Rule *> RuleList; | ||
23 | typedef std::map<std::string, Action *> ActionMap; | ||
24 | |||
25 | class Viewer; | ||
17 | 26 | ||
18 | class Build | 27 | class Build |
19 | { | 28 | { |
@@ -44,15 +53,15 @@ public: | |||
44 | 53 | ||
45 | void setStringProc( StringProc *pStrProc ); | 54 | void setStringProc( StringProc *pStrProc ); |
46 | std::string replVars( const std::string &sSrc, const std::string &sCont, VarMap *mExtra ); | 55 | std::string replVars( const std::string &sSrc, const std::string &sCont, VarMap *mExtra ); |
56 | RuleList findChainRules( Rule *pHead ); | ||
57 | StringList &getRequires( std::string sName ); | ||
47 | 58 | ||
48 | private: | 59 | Viewer *getView() |
49 | typedef std::map<std::string, Target *> TargetMap; | 60 | { |
50 | typedef std::list<std::string> StringList; | 61 | return pView; |
51 | typedef std::map<std::string, StringList> ReqMap; | 62 | } |
52 | typedef std::map<std::string, VarMap> ContextMap; | ||
53 | typedef std::map<std::string, Rule *> RuleMap; | ||
54 | typedef std::map<std::string, Action *> ActionMap; | ||
55 | 63 | ||
64 | private: | ||
56 | TargetMap mTarget; | 65 | TargetMap mTarget; |
57 | ReqMap mRequires; | 66 | ReqMap mRequires; |
58 | VarMap mVars; | 67 | VarMap mVars; |
@@ -60,6 +69,7 @@ private: | |||
60 | RuleMap mRule; | 69 | RuleMap mRule; |
61 | ActionMap mAction; | 70 | ActionMap mAction; |
62 | StringProc *pStrProc; | 71 | StringProc *pStrProc; |
72 | Viewer *pView; | ||
63 | 73 | ||
64 | //std::map<std::string, Rule *> mRule; | 74 | //std::map<std::string, Rule *> mRule; |
65 | //Action *pActDefault; | 75 | //Action *pActDefault; |