16#ifndef WATCHER_FILEWATCHER_H
17#define WATCHER_FILEWATCHER_H
25namespace event_visualisation
30 static const char* mLowGuard;
31 static const char* mEndGuard;
32 std::deque<std::string> mFiles;
33 std::string nextItem(
const std::string& item)
const;
34 std::string prevItem(
const std::string& item)
const;
35 std::vector<std::string> mDataFolders;
36 std::string mCurrentFile;
37 const std::vector<std::string>& mExt;
38 bool currentFileExist();
41 FileWatcher(
const std::vector<std::string>&
path,
const std::vector<std::string>& ext);
std::string currentFilePath() const
name of the file (with path) but guards replaced with file names
void saveCurrentFileToFolder(const std::string &destinationFolder)
copies
int getPos() const
include guards -> 0 points to mLowGuard
void setCurrentItem(int no)
sets using index
void rollToNext()
round robin next item
std::string currentItem() const
name of the file (without path) but guards replaced with file names
bool refresh()
reads folder content, updates current if points to not existing file
int getSize() const
include guards (so >=2 )
void changeFolder(const std::string &path)
switch to observe other folder
GLsizei const GLuint * paths
GLsizei const GLchar *const * path
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...