File indexing completed on 2023-03-17 11:01:13
0001 #ifndef Fireworks_Core_FWTypeToRepresentations_h
0002 #define Fireworks_Core_FWTypeToRepresentations_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <string>
0023 #include <vector>
0024 #include <map>
0025 #include <memory>
0026
0027
0028 #include "Fireworks/Core/interface/FWRepresentationInfo.h"
0029
0030
0031 class FWRepresentationCheckerBase;
0032
0033 class FWTypeToRepresentations {
0034 public:
0035 FWTypeToRepresentations();
0036 virtual ~FWTypeToRepresentations();
0037
0038
0039 const std::vector<FWRepresentationInfo>& representationsForType(const std::string& iTypeName) const;
0040
0041
0042
0043
0044 void add(std::shared_ptr<FWRepresentationCheckerBase> iChecker);
0045 void insert(const FWTypeToRepresentations&);
0046
0047 private:
0048
0049
0050
0051
0052
0053 mutable std::map<std::string, std::vector<FWRepresentationInfo> > m_typeToReps;
0054 std::vector<std::shared_ptr<FWRepresentationCheckerBase> > m_checkers;
0055 };
0056
0057 #endif