gtsam_points
Loading...
Searching...
No Matches
recent_files.hpp
Go to the documentation of this file.
1#ifndef GUIK_RECENT_FILES_HPP
2#define GUIK_RECENT_FILES_HPP
3
4#include <deque>
5#include <vector>
6#include <string>
7
8namespace guik {
9
11public:
13 RecentFiles(const std::string& tag, int max_history = 10);
15
16 void clear();
17 void push(const std::string& filename);
18 void push(const std::vector<std::string>& filenames);
19
20 bool empty() const;
21 size_t size() const;
22
23 std::string most_recent() const;
24 std::string fullpath(size_t i) const;
25 std::string filename(size_t i) const;
26
27public:
28 void read();
29 void write();
30
31private:
32 bool updated;
33 std::string tag;
34 int max_history;
35
36 std::deque<std::string> recent_files;
37};
38
39} // namespace guik
40
41#endif
Definition recent_files.hpp:10
bool empty() const
void push(const std::string &filename)
std::string filename(size_t i) const
size_t size() const
RecentFiles(const std::string &tag, int max_history=10)
std::string most_recent() const
std::string fullpath(size_t i) const
void push(const std::vector< std::string > &filenames)
Definition drawable_container.hpp:9