CMS 3D CMS Logo

ImplicitIncludeNode.cc

Go to the documentation of this file.
00001 #include "FWCore/ParameterSet/interface/ImplicitIncludeNode.h"
00002 #include "FWCore/ParameterSet/interface/IncludeFileFinder.h"
00003 
00004 namespace edm {
00005   namespace pset {
00006 
00007     ImplicitIncludeNode::ImplicitIncludeNode(const std::string & moduleClass, 
00008                                              const std::string & moduleLabel, int line)
00009     : IncludeNode("includeImplicit", "", line),
00010     moduleClass_(moduleClass),
00011     moduleLabel_(moduleLabel)
00012     {
00013     }
00014 
00015 
00016     void ImplicitIncludeNode::resolve(std::list<std::string> & openFiles,
00017                                       std::list<std::string> & sameLevelIncludes, 
00018                                       bool strict)
00019     {
00020       // wish there were a way to initialize this only once
00021       IncludeFileFinder finder;
00022       FileInPath file = finder.find(moduleClass_, moduleLabel_);
00023 
00024       // going back to relative path, for coding convenience
00025       setName(file.relativePath());
00026       IncludeNode::resolve(openFiles, sameLevelIncludes, strict);
00027     }
00028 
00029   }
00030 }
00031 

Generated on Tue Jun 9 17:36:28 2009 for CMSSW by  doxygen 1.5.4