00001 00009 #ifndef __BASECUTPOR_H 00010 #define __BASECUTPOR_H 00011 00012 #include <string> 00013 00014 class BaseCut; 00015 00016 // Class BaseCutPoR: 00018 00026 class BaseCutPoR { 00027 public: 00029 BaseCutPoR (BaseCut& bc_ 00030 ) 00031 : pbc(&bc_) {}; 00033 BaseCutPoR (BaseCut *pbc_ 00034 ) 00035 : pbc(pbc_) {}; 00036 00038 BaseCutPoR (int = 0 00039 ) 00040 : pbc(0) {} 00042 BaseCutPoR (const std::string& name 00043 ); 00045 BaseCutPoR (const char *name 00046 ); 00047 00048 // Data members 00049 BaseCut *pbc; 00050 }; 00051 00052 // Class BaseCutPoRConst: 00054 00062 class BaseCutPoRConst { 00063 public: 00065 BaseCutPoRConst (const BaseCut& bc_ 00066 ) 00067 : pbc(&bc_) {}; 00069 BaseCutPoRConst (const BaseCut *pbc_ 00070 ) 00071 : pbc(pbc_) {}; 00072 00074 BaseCutPoRConst (int = 0 00075 ) 00076 : pbc(0) {} 00078 BaseCutPoRConst (const std::string& name 00079 ); 00081 BaseCutPoRConst (const char *name 00082 ); 00083 00084 // Data members 00085 const BaseCut *pbc; 00086 }; 00087 00088 #endif /* #ifndef __BASECUTPOR_H */