Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:10

0001 #ifndef FWCore_Sources_FromFiles_h
0002 #define FWCore_Sources_FromFiles_h
0003 
0004 /*----------------------------------------------------------------------
0005 ----------------------------------------------------------------------*/
0006 
0007 #include <vector>
0008 #include <string>
0009 
0010 #include "FWCore/Catalog/interface/InputFileCatalog.h"
0011 
0012 namespace edm {
0013   class ParameterSet;
0014   class ParameterSetDescription;
0015 
0016   class FromFiles {
0017   public:
0018     FromFiles(ParameterSet const& pset);
0019     ~FromFiles();
0020 
0021     std::vector<std::string> const& logicalFileNames() const { return catalog_.logicalFileNames(); }
0022     std::vector<std::string> fileNames(unsigned iCatalog) const { return catalog_.fileNames(iCatalog); }
0023     InputFileCatalog& catalog() { return catalog_; }
0024 
0025     static void fillDescription(ParameterSetDescription& desc);
0026 
0027     void incrementFileIndex() { ++fileIndex_; }
0028 
0029     size_t fileIndex() const;
0030 
0031   private:
0032     InputFileCatalog catalog_;
0033     size_t fileIndex_;
0034   };
0035 }  // namespace edm
0036 #endif