00001 #ifndef _RTREEINCLUDERULE_H_ 00002 #define _RTREEINCLUDERULE_H_ 00003 00004 #include "rtreecontextrule.h" 00005 00007 class IncludeRule : public Rule{ 00008 00009 private: 00011 const string name; 00013 RunRuleList &runRuleList; 00014 00015 public: 00017 IncludeRule(Constant* iname, RunRuleList &irunRuleList); 00018 00019 virtual ~IncludeRule(); 00020 00021 virtual bool execute(RuleContext* context, List* phpIn, List* phpOut, List* tplOut, Node::Assignment& assign) const; 00022 00023 virtual Rule* copy(); 00024 00025 virtual Rule* substitute(const Node::Assignment &assign); 00026 00027 virtual ostream& print(ostream& os) const; 00028 }; 00029 00030 00031 #endif