]> git.lyx.org Git - lyx.git/blob - src/Variables.h
Remove cached var from RenderPreview. Changes elsewhere to suit.
[lyx.git] / src / Variables.h
1 // -*- C++ -*-
2 /**
3  * \file Variables.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  * \author Jean-Marc Lasgouttes
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef VARIABLES_H
14 #define VARIABLES_H
15
16 #include <map>
17
18
19 ///
20 class Variables {
21 public:
22         ///
23         void set(std::string const &, std::string const &);
24         ///
25         std::string const get(std::string const &) const;
26         ///
27         bool isSet(std::string const & var) const;
28         ///
29         std::string const expand(std::string const &) const;
30 private:
31         ///
32         typedef std::map<std::string, std::string> Vars;
33         ///
34         Vars vars_;
35 };
36
37 #endif