32 std::string moduleName = conf.
getParameter<std::string>(
"@module_type");
33 std::string moduleLabel = conf.
getParameter<std::string>(
"@module_label");
35 std::ostringstream ost;
36 ost <<
"Validating configuration of module: class=" << moduleName
37 <<
" label='" << moduleLabel <<
"'";
44 sigc::signal<void, ModuleDescription const&>& post,
46 std::ostringstream ost;
56 if (edmType != expected) {
58 <<
"The base type in the python configuration is " << expected <<
", but the base type\n"
59 <<
"for the module's C++ class is " << edmType <<
". "
60 <<
"Please fix the configuration.\n"
61 <<
"It must use the same base type as the C++ class.\n";
67 sigc::signal<void, ModuleDescription const&>& pre,
68 sigc::signal<void, ModuleDescription const&>& post)
const {
90 std::auto_ptr<Worker> worker;
T getParameter(std::string const &) const
ParameterSetID id() const
std::string const & moduleName() const
std::auto_ptr< Worker > makeWorker(WorkerParams const &, sigc::signal< void, ModuleDescription const & > &iPre, sigc::signal< void, ModuleDescription const & > &iPost) const
void throwConfigurationException(ModuleDescription const &md, sigc::signal< void, ModuleDescription const & > &post, cms::Exception &iException) const
virtual const std::string & baseType() const =0
void swapModule(Worker *, ParameterSet const &)
std::string const & moduleLabel() const
void validateEDMType(std::string const &edmType, WorkerParams const &p) const
virtual void implSwapModule(Worker *, ParameterSet const &)=0
ModuleDescription createModuleDescription(WorkerParams const &p) const
void stdToEDM(std::exception const &e)
virtual void fillDescriptions(ConfigurationDescriptions &iDesc) const =0
void charPtrToEDM(char const *c)
void stringToEDM(std::string &s)
void addContext(std::string const &context)
boost::shared_ptr< ProcessConfiguration const > processConfiguration_
void validate(ParameterSet &pset, std::string const &moduleLabel) const
ParameterSet const & registerIt()
void throwValidationException(WorkerParams const &p, cms::Exception &iException) const