Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef GUI_AUXILIARY_TIPS_HPP_INCLUDED
00017 #define GUI_AUXILIARY_TIPS_HPP_INCLUDED
00018
00019 #include "tstring.hpp"
00020
00021 #include <vector>
00022
00023 class config;
00024
00025 namespace gui2 {
00026
00027 class ttip;
00028
00029 namespace tips {
00030
00031
00032
00033
00034
00035
00036
00037
00038 std::vector<ttip> load(const config& cfg);
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 std::vector<ttip> shuffle(const std::vector<ttip>& tips);
00050
00051 }
00052
00053
00054 class ttip
00055 {
00056 public:
00057
00058 const t_string& text() const { return text_; }
00059 const t_string& source() const { return source_; }
00060
00061 private:
00062 friend std::vector<ttip> tips::load(const config&);
00063 friend std::vector<ttip> tips::shuffle(const std::vector<ttip>& tips);
00064 ttip(const t_string& text
00065 , const t_string& source
00066 , const std::string& unit_filter);
00067
00068
00069 t_string text_;
00070
00071
00072 t_string source_;
00073
00074
00075
00076
00077
00078
00079
00080
00081 std::vector<std::string> unit_filter_;
00082 };
00083
00084 }
00085
00086 #endif
00087