CMS 3D CMS Logo

DDPartSelection.h
Go to the documentation of this file.
1 #ifndef DDPartSelection_h
2 #define DDPartSelection_h
3 
4 #include <vector>
5 #include <string>
6 #include <iostream>
8 
9 class DDLogicalPart;
10 
12  ddunknown, // -> (should never appear!)
13  ddanynode, // -> //*
14  ddanychild, // -> /*
15  ddanylogp, // -> //NameOfLogicalPart
16  ddanyposp, // -> //NameOfLogicalPart[copyno]
17  ddchildlogp, // -> /NameOfLogicalPart
18  ddchildposp // -> /NameOfLogicalPart[copyno]
19 };
20 
22  DDPartSelRegExpLevel(const std::string &ns, const std::string &nm, int cpn, ddselection_type t, bool isRegex = false)
23  : ns_(ns), nm_(nm), copyno_(cpn), selectionType_(t), isRegex_(isRegex) {}
25  int copyno_;
27  bool isRegex_;
28 };
29 
33  int copyno_;
35 };
36 
37 class DDPartSelection : public std::vector<DDPartSelectionLevel> {
38 public:
40 };
41 
42 std::ostream &operator<<(std::ostream &, const DDPartSelection &);
43 std::ostream &operator<<(std::ostream &, const std::vector<DDPartSelection> &);
44 
45 void DDTokenize2(const std::string &selectionString, std::vector<DDPartSelRegExpLevel> &result);
46 std::ostream &operator<<(std::ostream &, const DDPartSelection &);
47 
48 #endif
DDPartSelRegExpLevel(const std::string &ns, const std::string &nm, int cpn, ddselection_type t, bool isRegex=false)
ddselection_type selectionType_
DDPartSelectionLevel(const DDLogicalPart &, int, ddselection_type)
ddselection_type
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:93
ddselection_type selectionType_
std::ostream & operator<<(std::ostream &, const DDPartSelection &)
void DDTokenize2(const std::string &selectionString, std::vector< DDPartSelRegExpLevel > &result)