CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/FWCore/ParameterSet/src/EmptyGroupDescription.cc

Go to the documentation of this file.
00001 
00002 #include "FWCore/ParameterSet/interface/EmptyGroupDescription.h"
00003 #include "FWCore/ParameterSet/interface/DocFormatHelper.h"
00004 
00005 #include <ostream>
00006 
00007 namespace edm {
00008 
00009   EmptyGroupDescription::
00010   EmptyGroupDescription() { }
00011 
00012   void
00013   EmptyGroupDescription::
00014   checkAndGetLabelsAndTypes_(std::set<std::string>& /*usedLabels*/,
00015                              std::set<ParameterTypes>& /*parameterTypes*/,
00016                              std::set<ParameterTypes>& /*wildcardTypes*/) const { }
00017 
00018   void
00019   EmptyGroupDescription::
00020   validate_(ParameterSet&,
00021             std::set<std::string>& /*validatedLabels*/,
00022             bool /*optional*/) const { }
00023 
00024   void
00025   EmptyGroupDescription::
00026   writeCfi_(std::ostream&,
00027             bool& /*startWithComma*/,
00028             int /*indentation*/,
00029             bool& /*wroteSomething*/) const { }
00030 
00031   void
00032   EmptyGroupDescription::
00033   print_(std::ostream& os,
00034          bool /*optional*/,
00035          bool /*writeToCfi*/,
00036          DocFormatHelper& dfh) {
00037 
00038     if(dfh.pass() == 1) {
00039 
00040       dfh.indent(os);
00041       os << "Empty group description\n";
00042 
00043       if(!dfh.brief()) {
00044         os << "\n";
00045       }
00046     }
00047   }
00048 
00049   bool
00050   EmptyGroupDescription::
00051   exists_(ParameterSet const&) const {
00052     return true;
00053   }
00054 
00055   bool
00056   EmptyGroupDescription::
00057   partiallyExists_(ParameterSet const& pset) const {
00058     return exists(pset);
00059   }
00060 
00061   int
00062   EmptyGroupDescription::
00063   howManyXORSubNodesExist_(ParameterSet const& pset) const {
00064     return exists(pset) ? 1 : 0;
00065   }
00066 }