CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_4/src/CondCore/TagCollection/interface/PfnEditor.h

Go to the documentation of this file.
00001 #ifndef CondCore_TagCollection_PfnEditor
00002 #define CondCore_TagCollection_PfnEditor
00003 
00004 
00005 #include <string>
00006 
00007 namespace cond{
00008 
00009   // edit the pfn accordind to rules given in its constructor
00010   class PfnEditor {
00011   public:
00012     PfnEditor();
00013     PfnEditor(std::string const & ipre, 
00014               std::string const & ipos);
00015     
00016     std::string operator()(std::string const & pfn) const;
00017 
00018   private:
00019     std::string prefix;
00020     std::string postfix;
00021     bool off;
00022   };
00023 
00024 
00025 }
00026 #endif // CondCore_TagCollection_PfnEditor
00027