diff options
author | Stefan Pöschel <github@basicmaster.de> | 2017-08-22 18:15:02 +0200 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2017-08-22 18:19:12 +0200 |
commit | dab43a8fb43c904cc316f327d8117beb102e04de (patch) | |
tree | 99005de6bc38574be3d530d2086a828035a397a9 /src/sls.h | |
parent | e6d419d20391361f167d2291dcdfa328131d97ed (diff) | |
download | ODR-PadEnc-dab43a8fb43c904cc316f327d8117beb102e04de.tar.gz ODR-PadEnc-dab43a8fb43c904cc316f327d8117beb102e04de.tar.bz2 ODR-PadEnc-dab43a8fb43c904cc316f327d8117beb102e04de.zip |
SLS: move slides dir scan to new slide store
Diffstat (limited to 'src/sls.h')
-rw-r--r-- | src/sls.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -41,10 +41,12 @@ # endif #endif +#include <dirent.h> #include <sys/stat.h> #include <deque> #include <fstream> #include <iostream> +#include <list> #include <algorithm> @@ -183,6 +185,21 @@ class History { }; +// --- SlideStore ----------------------------------------------------------------- +class SlideStore { +private: + std::list<slide_metadata_t> slides; + History history; + + static int FilterSlides(const struct dirent* file); +public: + bool InitFromDir(const std::string& dir); + + bool Empty() {return slides.empty();} + slide_metadata_t GetSlide(); +}; + + // --- MOTHeader ----------------------------------------------------------------- class MOTHeader { private: |