362c1f4c3b5ce9e3fce11167a51fbe4cdb2174de
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

1) /* Blinker
Stefan Schuermans update copyright header

Stefan Schuermans authored 5 years ago

2)    Copyright 2011-2019 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
4)    a blinkenarea.org project */
5) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

6) #ifndef BLINKER_FILE_H
7) #define BLINKER_FILE_H
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

8) 
9) #include <string>
10) 
11) #include "Time.h"
12) 
13) namespace Blinker {
14) 
15) /// information about a file
16) class File
17) {
18) public:
19)   /**
20)    * @brief constructor from path
21)    * @param[in] path path to file
22)    */
23)   File(const std::string &path);
24) 
25) public:
26)   /**
27)    * @brief get path to file
28)    * @return path to file
29)    */
30)   const std::string & getPath();
31) 
32)   /**
33)    * @brief check if file has been modified
34)    * @return if file has been modified since last check
35)    */
36)   bool checkModified();
37) 
38) protected:
Stefan Schuermans fix detection of file modif...

Stefan Schuermans authored 13 years ago

39)   std::string m_path;           ///< path to file
40)   Time        m_lastModifyTime; ///< last known modification time was checked
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

41) }; // class File
42) 
43) } // namespace Blinker
44) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

45) #endif // #ifndef BLINKER_FILE_H