#ifndef DATASTORE_H #define DATASTORE_H ///////////////////////////////////////////////////////////////////// // DataStore.h - Store results of file search // // // // Jim Fawcett, Help Session Demo, Spring 2015 // ///////////////////////////////////////////////////////////////////// #include class DataStore { public: using iterator = std::vector::iterator; void save(const std::string& filespec) { store.push_back(filespec); } void save(const std::string& filename, const std::string& path) {} iterator begin() { return store.begin(); } iterator end() { return store.end(); } private: std::vector store; }; #endif