CMS 3D CMS Logo

FWTypeToRepresentations.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWTypeToRepresentations_h
2 #define Fireworks_Core_FWTypeToRepresentations_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWTypeToRepresentations
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Tue Nov 11 11:25:04 EST 2008
19 //
20 
21 // system include files
22 #include <string>
23 #include <vector>
24 #include <map>
25 #include <memory>
26 
27 // user include files
29 
30 // forward declarations
32 
34 
35 public:
37  virtual ~FWTypeToRepresentations();
38 
39  // ---------- const member functions ---------------------
40  const std::vector<FWRepresentationInfo>& representationsForType(const std::string& iTypeName) const;
41 
42  // ---------- static member functions --------------------
43 
44  // ---------- member functions ---------------------------
45  void add( std::shared_ptr<FWRepresentationCheckerBase> iChecker);
46  void insert( const FWTypeToRepresentations& );
47 
48 private:
49  //FWTypeToRepresentations(const FWTypeToRepresentations&); // stop default
50 
51  //const FWTypeToRepresentations& operator=(const FWTypeToRepresentations&); // stop default
52 
53  // ---------- member data --------------------------------
54  mutable std::map<std::string, std::vector<FWRepresentationInfo> > m_typeToReps;
55  std::vector<std::shared_ptr<FWRepresentationCheckerBase> > m_checkers;
56 };
57 
58 
59 #endif
std::vector< std::shared_ptr< FWRepresentationCheckerBase > > m_checkers
const std::vector< FWRepresentationInfo > & representationsForType(const std::string &iTypeName) const
void insert(const FWTypeToRepresentations &)
void add(std::shared_ptr< FWRepresentationCheckerBase > iChecker)
std::map< std::string, std::vector< FWRepresentationInfo > > m_typeToReps