BlinkenArea - GitList
Repositories
Blog
Wiki
Blinker
Code
Commits
Branches
Tags
Search
Tree:
3032550
Branches
Tags
master
Blinker
src
linux
File.h
first version, plays videos to stdout
Stefan Schuermans
commited
3032550
at 2011-10-23 11:37:40
File.h
Blame
History
Raw
/* Blinker Copyright 2011 Stefan Schuermans <stefan@blinkenarea.org> Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html a blinkenarea.org project */ #ifndef FILE_H #define FILE_H #include <string> #include "Time.h" namespace Blinker { /// information about a file class File { public: /** * @brief constructor from path * @param[in] path path to file */ File(const std::string &path); public: /** * @brief get path to file * @return path to file */ const std::string & getPath(); /** * @brief check if file has been modified * @return if file has been modified since last check */ bool checkModified(); protected: std::string m_path; ///< path to file Time m_lastCheck; ///< last time modification time was checked }; // class File } // namespace Blinker #endif // #ifndef FILE_H