00001 #ifndef FWCore_Sources_FromFiles_h 00002 #define FWCore_Sources_FromFiles_h 00003 00004 /*---------------------------------------------------------------------- 00005 ----------------------------------------------------------------------*/ 00006 00007 #include <vector> 00008 #include <string> 00009 00010 #include "FWCore/Catalog/interface/InputFileCatalog.h" 00011 00012 namespace edm { 00013 class ParameterSet; 00014 class ParameterSetDescription; 00015 00016 class FromFiles { 00017 public: 00018 FromFiles(ParameterSet const& pset); 00019 ~FromFiles(); 00020 00021 std::vector<std::string> const& logicalFileNames() const {return catalog_.logicalFileNames();} 00022 std::vector<std::string> const& fileNames() const {return catalog_.fileNames();} 00023 InputFileCatalog& catalog() {return catalog_;} 00024 00025 static void fillDescription(ParameterSetDescription& desc); 00026 00027 void incrementFileIndex() {++fileIndex_;} 00028 00029 size_t fileIndex() const; 00030 00031 private: 00032 00033 InputFileCatalog catalog_; 00034 size_t fileIndex_; 00035 }; 00036 } 00037 #endif