CMS 3D CMS Logo

OperandNode.cc

Go to the documentation of this file.
00001 #include "FWCore/ParameterSet/interface/OperandNode.h"
00002 #include "FWCore/ParameterSet/interface/Visitor.h"
00003 namespace edm {
00004   namespace pset {
00005 
00006 
00007     //--------------------------------------------------
00008     // OperandNode
00009     //--------------------------------------------------
00010 
00011     OperandNode::OperandNode(const std::string& type,
00012                              const std::string& name,
00013                              int line):
00014       Node(name, line),
00015       type_(type)
00016     {  }
00017 
00018     std::string OperandNode::type() const { return type_; }
00019 
00020     void OperandNode::print(std::ostream& ost, Node::PrintOptions options) const
00021     {
00022       ost << name();
00023     }
00024 
00025     void OperandNode::accept(Visitor& v) const
00026     {
00027       v.visitOperand(*this);
00028       //throw runtime_error("OperatandNodes cannot be visited");
00029     }
00030   }
00031 }

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