Project
Loading...
Searching...
No Matches
o2::event_visualisation::FileWatcher Class Reference

#include <FileWatcher.h>

Public Member Functions

 FileWatcher (const std::vector< std::string > &path, const std::vector< std::string > &ext)
 stop guard
 
void changeFolder (const std::string &path)
 switch to observe other folder
 
void changeFolder (const std::vector< std::string > &paths)
 switch to observe other folders
 
void saveCurrentFileToFolder (const std::string &destinationFolder)
 copies
 
int getSize () const
 include guards (so >=2 )
 
int getPos () const
 include guards -> 0 points to mLowGuard
 
void setFirst ()
 
void setLast ()
 
void setNext ()
 
void setPrev ()
 
void rollToNext ()
 round robin next item
 
bool refresh ()
 reads folder content, updates current if points to not existing file
 
std::string currentItem () const
 name of the file (without path) but guards replaced with file names
 
void setCurrentItem (int no)
 sets using index
 
std::string currentFilePath () const
 name of the file (with path) but guards replaced with file names
 

Detailed Description

Definition at line 28 of file FileWatcher.h.

Constructor & Destructor Documentation

◆ FileWatcher()

FileWatcher::FileWatcher ( const std::vector< std::string > &  path,
const std::vector< std::string > &  ext 
)

stop guard

Definition at line 31 of file FileWatcher.cxx.

Member Function Documentation

◆ changeFolder() [1/2]

void FileWatcher::changeFolder ( const std::string &  path)

switch to observe other folder

Definition at line 41 of file FileWatcher.cxx.

◆ changeFolder() [2/2]

void FileWatcher::changeFolder ( const std::vector< std::string > &  paths)

switch to observe other folders

Definition at line 56 of file FileWatcher.cxx.

◆ currentFilePath()

std::string FileWatcher::currentFilePath ( ) const

name of the file (with path) but guards replaced with file names

Definition at line 181 of file FileWatcher.cxx.

◆ currentItem()

string FileWatcher::currentItem ( ) const

name of the file (without path) but guards replaced with file names

Definition at line 87 of file FileWatcher.cxx.

◆ getPos()

int FileWatcher::getPos ( ) const

include guards -> 0 points to mLowGuard

Definition at line 138 of file FileWatcher.cxx.

◆ getSize()

int FileWatcher::getSize ( ) const

include guards (so >=2 )

Definition at line 133 of file FileWatcher.cxx.

◆ refresh()

bool FileWatcher::refresh ( )

reads folder content, updates current if points to not existing file

Definition at line 143 of file FileWatcher.cxx.

◆ rollToNext()

void FileWatcher::rollToNext ( )

round robin next item

Definition at line 101 of file FileWatcher.cxx.

◆ saveCurrentFileToFolder()

void FileWatcher::saveCurrentFileToFolder ( const std::string &  destinationFolder)

copies

Definition at line 201 of file FileWatcher.cxx.

◆ setCurrentItem()

void FileWatcher::setCurrentItem ( int  no)

sets using index

Definition at line 174 of file FileWatcher.cxx.

◆ setFirst()

void FileWatcher::setFirst ( )

Definition at line 113 of file FileWatcher.cxx.

◆ setLast()

void FileWatcher::setLast ( )

Definition at line 118 of file FileWatcher.cxx.

◆ setNext()

void FileWatcher::setNext ( )

Definition at line 123 of file FileWatcher.cxx.

◆ setPrev()

void FileWatcher::setPrev ( )

Definition at line 128 of file FileWatcher.cxx.


The documentation for this class was generated from the following files: