![]() |
![]() |
00001 #ifndef ParameterSet_RenamedIncludeNode_h 00002 #define ParameterSet_RenamedIncludeNode_h 00003 00004 #include "FWCore/ParameterSet/interface/IncludeNode.h" 00005 00010 namespace edm { 00011 namespace pset { 00012 00013 class RenamedIncludeNode : public IncludeNode 00014 { 00015 public: 00016 RenamedIncludeNode(const std::string & type, const std::string & name, 00017 const std::string & targetType, const std::string & newName, 00018 const std::string & targetName, int line); 00019 00020 virtual Node * clone() const { return new RenamedIncludeNode(*this);} 00021 00023 virtual bool checkMultipleIncludes() const {return false;} 00024 00025 virtual bool check(bool strict) const; 00026 00027 virtual void print(std::ostream & out, PrintOptions options) const; 00028 00029 private: 00031 bool checkTarget(NodePtr node) const; 00032 00034 std::string targetType_; 00035 std::string newName_; 00037 std::string targetName_; 00038 }; 00039 00040 } 00041 } 00042 00043 #endif 00044