Go to the documentation of this file.00001 #ifndef FWCore_Framework_GroupSelector_h
00002 #define FWCore_Framework_GroupSelector_h
00003
00005
00006
00007
00008
00009
00011
00012 #include <iosfwd>
00013 #include <string>
00014 #include <vector>
00015
00016 namespace edm {
00017 class BranchDescription;
00018 class GroupSelectorRules;
00019 class ParameterSet;
00020
00021 class GroupSelector {
00022 public:
00023 GroupSelector();
00024
00025
00026 void initialize(GroupSelectorRules const& rules,
00027 std::vector<BranchDescription const*> const& branchDescriptions);
00028
00029 bool selected(BranchDescription const& desc) const;
00030
00031
00032 void print(std::ostream& os) const;
00033
00034 bool initialized() const {return initialized_;}
00035
00036 private:
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 std::vector<std::string> groupsToSelect_;
00048 bool initialized_;
00049 };
00050
00051 std::ostream&
00052 operator<< (std::ostream& os, const GroupSelector& gs);
00053
00054 }
00055
00056
00057
00058 #endif