]> git.lyx.org Git - lyx.git/blob - src/Variables.h
Alfredo's second patch
[lyx.git] / src / Variables.h
1 // -*- C++ -*-
2 /* This file is part of
3 * ======================================================
4 *
5 *           LyX, The Document Processor
6 *
7 *           Copyright 1995 Matthias Ettrich
8 *           Copyright 1995-2001 the LyX Team.
9 *
10 * ====================================================== */
11
12 #ifndef VARIABLES_H
13 #define VARIABLES_H
14
15 #include "LString.h"
16 #include <map>
17
18
19 ///
20 class Variables {
21 public:
22         ///
23         void set(string const &, string const &);
24         ///
25         string const get(string const &) const;
26         ///
27         bool isSet(string const & var) const;
28         ///
29         string const expand(string const &) const;
30 private:
31         ///
32         typedef std::map<string, string> Vars;
33         ///
34         Vars vars_;
35 };
36
37 #endif