Back to home page

Project CMSSW displayed by LXR

 
 

    


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>& /*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_(std::ostream&,
0020                                         bool /*optional*/,
0021                                         bool& /*startWithComma*/,
0022                                         int /*indentation*/,
0023                                         CfiOptions&,
0024                                         bool& /*wroteSomething*/) const {}
0025 
0026   void EmptyGroupDescription::print_(std::ostream& os,
0027                                      bool /*optional*/,
0028                                      bool /*writeToCfi*/,
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 }  // namespace edm