]> git.lyx.org Git - lyx.git/blob - src/Variables.h
5823fb3e6cdcb36be12baed316a780b6f2e41985
[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 namespace lyx {
20
21
22 ///
23 class Variables {
24 public:
25         ///
26         void set(std::string const &, std::string const &);
27         ///
28         std::string const get(std::string const &) const;
29         ///
30         bool isSet(std::string const & var) const;
31         ///
32         std::string const expand(std::string const &) const;
33 private:
34         ///
35         typedef std::map<std::string, std::string> Vars;
36         ///
37         Vars vars_;
38 };
39
40
41 } // namespace lyx
42
43 #endif