CMS 3D CMS Logo

ReplaceNode.cc

Go to the documentation of this file.
00001 #include "FWCore/ParameterSet/interface/ReplaceNode.h"
00002 #include "FWCore/Utilities/interface/EDMException.h"
00003 
00004 namespace edm {
00005   namespace pset {
00006 
00007     ReplaceNode::ReplaceNode(const ReplaceNode & n)
00008     : Node(n),
00009       type_(n.type()),
00010       value_( NodePtr(n.value_->clone()) )
00011     {
00012     }
00013 
00014 
00015     bool ReplaceNode::isEmbedded() const
00016     {
00017       return (getParent()->isInclude());
00018     }
00019  
00020     void ReplaceNode::print(std::ostream& ost, Node::PrintOptions options) const
00021     {
00022       value_->print(ost, options);
00023     }
00024 
00025     void ReplaceNode::accept(Visitor& v) const
00026     {
00027       throw edm::Exception(errors::Configuration,"Replace Nodes should always be processed by the postprocessor.  Please contact an EDM developer") << "\nfrom " << traceback();
00028     }
00029 
00030   }
00031 }

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