File indexing completed on 2024-05-23 03:13:14
0001
0002 #include "FWCore/ParameterSet/interface/EmptyGroupDescription.h"
0003 #include "FWCore/ParameterSet/interface/DocFormatHelper.h"
0004
0005 #include <ostream>
0006
0007 namespace edm {
0008
0009 EmptyGroupDescription::EmptyGroupDescription() {}
0010
0011 void EmptyGroupDescription::checkAndGetLabelsAndTypes_(std::set<std::string>& ,
0012 std::set<ParameterTypes>& ,
0013 std::set<ParameterTypes>& ) const {}
0014
0015 void EmptyGroupDescription::validate_(ParameterSet&,
0016 std::set<std::string>& ,
0017 bool ) const {}
0018
0019 void EmptyGroupDescription::writeCfi_(std::ostream&,
0020 bool ,
0021 bool& ,
0022 int ,
0023 CfiOptions&,
0024 bool& ) const {}
0025
0026 void EmptyGroupDescription::print_(std::ostream& os,
0027 bool ,
0028 bool ,
0029 DocFormatHelper& dfh) const {
0030 if (dfh.pass() == 1) {
0031 dfh.indent(os);
0032 os << "Empty group description\n";
0033
0034 if (!dfh.brief()) {
0035 os << "\n";
0036 }
0037 }
0038 }
0039
0040 bool EmptyGroupDescription::exists_(ParameterSet const&) const { return true; }
0041
0042 bool EmptyGroupDescription::partiallyExists_(ParameterSet const& pset) const { return exists(pset); }
0043
0044 int EmptyGroupDescription::howManyXORSubNodesExist_(ParameterSet const& pset) const { return exists(pset) ? 1 : 0; }
0045 }