Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:55

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>& /*usedLabels*/,
0012                                                          std::set<ParameterTypes>& /*parameterTypes*/,
0013                                                          std::set<ParameterTypes>& /*wildcardTypes*/) const {}
0014 
0015   void EmptyGroupDescription::validate_(ParameterSet&,
0016                                         std::set<std::string>& /*validatedLabels*/,
0017                                         bool /*optional*/) const {}
0018 
0019   void EmptyGroupDescription::writeCfi_(
0020       std::ostream&, bool /*optional*/, bool& /*startWithComma*/, int /*indentation*/, bool& /*wroteSomething*/) const {
0021   }
0022 
0023   void EmptyGroupDescription::print_(std::ostream& os,
0024                                      bool /*optional*/,
0025                                      bool /*writeToCfi*/,
0026                                      DocFormatHelper& dfh) const {
0027     if (dfh.pass() == 1) {
0028       dfh.indent(os);
0029       os << "Empty group description\n";
0030 
0031       if (!dfh.brief()) {
0032         os << "\n";
0033       }
0034     }
0035   }
0036 
0037   bool EmptyGroupDescription::exists_(ParameterSet const&) const { return true; }
0038 
0039   bool EmptyGroupDescription::partiallyExists_(ParameterSet const& pset) const { return exists(pset); }
0040 
0041   int EmptyGroupDescription::howManyXORSubNodesExist_(ParameterSet const& pset) const { return exists(pset) ? 1 : 0; }
0042 }  // namespace edm