CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UserData.cc
Go to the documentation of this file.
2 // Note: these two below are allowed in FWLite even if they come from FWCore
5 
6 void pat::UserData::checkDictionaries(const std::type_info &type) {
7  if (!edm::hasDictionary(type)) {
8  int status = 0;
9  char * demangled = abi::__cxa_demangle(type.name(), 0, 0, &status);
10  std::string typeName(status == 0 ? demangled : type.name());
11  if ((demangled != 0) && (status == 0)) free(demangled);
13  << " No REFLEX data dictionary found for the following class:\n\t"
14  << typeName
15  << "\n Most likely the dictionary was never generated,\n"
16  << " but it may be that it was generated in the wrong package.\n"
17  << " Please add (or move) the specification\n"
18  << "\t<class name=\"" << typeName << "\" />\n"
19  << " to the appropriate classes_def.xml file.\n"
20  << " If the class is a template instance, you may need\n"
21  << " to define a dummy variable of this type in classes.h.\n"
22  << " Also, if this class has any transient members,\n"
23  << " you need to specify them in classes_def.xml.\n";
24  } // check for dictionary
25 }
type
Definition: HCALResponse.h:21
virtual const std::string & typeName() const =0
Human readable name of the concrete type of stored data.
bool hasDictionary(std::type_info const &)
tuple status
Definition: ntuplemaker.py:245
static void checkDictionaries(const std::type_info &type)
Definition: UserData.cc:6