File indexing completed on 2025-01-09 23:33:33
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> fileNames(unsigned iCatalog) const { return catalog_.fileNames(iCatalog); }
0022 InputFileCatalog& catalog() { return catalog_; }
0023
0024 static void fillDescription(ParameterSetDescription& desc);
0025
0026 void incrementFileIndex() { ++fileIndex_; }
0027
0028 size_t fileIndex() const;
0029
0030 private:
0031 InputFileCatalog catalog_;
0032 size_t fileIndex_;
0033 };
0034 }
0035 #endif