CMS 3D CMS Logo

DictionaryTools.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_DictionaryTools_h
2 #define FWCore_Utilities_DictionaryTools_h
3 
4 /*----------------------------------------------------------------------
5 
6 DictionaryTools provides a small number of dictionary based tools, used in
7 the CMS event model.
8 
9 ----------------------------------------------------------------------*/
10 
11 #include <set>
12 #include <string>
13 #include <vector>
14 
15 class TClass;
16 
17 namespace edm {
18 
19  class Exception;
20  class TypeID;
21  class TypeWithDict;
22 
23  bool checkDictionary(std::vector<std::string>& missingDictionaries,
24  TypeID const& typeID);
25 
26  bool checkDictionaryOfWrappedType(std::vector<std::string>& missingDictionaries,
27  TypeID const& unwrappedTypeID);
28 
29  bool checkDictionaryOfWrappedType(std::vector<std::string>& missingDictionaries,
30  std::string const& unwrappedName);
31 
32  bool checkDictionary(std::vector<std::string>& missingDictionaries,
33  std::string const& name,
34  TypeWithDict const& typeWithDict);
35 
36  bool checkClassDictionaries(std::vector<std::string>& missingDictionaries,
37  TypeID const& typeID);
38 
39  bool checkClassDictionaries(std::vector<std::string>& missingDictionaries,
40  std::string const& name,
41  TypeWithDict const& typeWithDict);
42 
44  std::vector<std::string>& missingDictionaries,
45  std::string const& context);
46 
47  void throwMissingDictionariesException(std::vector<std::string>& missingDictionaries,
48  std::string const& context);
49 
50  void throwMissingDictionariesException(std::vector<std::string>& missingDictionaries,
51  std::string const& context,
52  std::vector<std::string>& producedTypes);
53 
54  void throwMissingDictionariesException(std::vector<std::string>& missingDictionaries,
55  std::string const& context,
56  std::vector<std::string>& producedTypes,
57  std::vector<std::string>& branchNames,
58  bool fromStreamerSource = false);
59 
60  void throwMissingDictionariesException(std::vector<std::string>& missingDictionaries,
61  std::string const& context,
62  std::set<std::string>& producedTypes,
63  bool consumedWithView);
64 
65  bool public_base_classes(std::vector<std::string>& missingDictionaries,
66  TypeID const& typeID,
67  std::vector<TypeWithDict>& baseTypes);
68 } // namespace edm
69 
70 #endif // FWCore_Utilities_DictionaryTools_h
void throwMissingDictionariesException(std::vector< std::string > &missingDictionaries, std::string const &context)
bool public_base_classes(std::vector< std::string > &missingDictionaries, TypeID const &typeID, std::vector< TypeWithDict > &baseTypes)
bool checkDictionary(std::vector< std::string > &missingDictionaries, TypeID const &typeID)
bool checkClassDictionaries(std::vector< std::string > &missingDictionaries, TypeID const &typeID)
void addToMissingDictionariesException(edm::Exception &exception, std::vector< std::string > &missingDictionaries, std::string const &context)
HLT enums.
bool checkDictionaryOfWrappedType(std::vector< std::string > &missingDictionaries, TypeID const &unwrappedTypeID)