]> git.lyx.org Git - lyx.git/blob - src/Variables.h
1b71983911299a84ad2d349a8a1fa6e481594ae7
[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-2000 the LyX Team.
9 *
10 * ====================================================== */
11
12 #ifndef VARIABLES_H
13 #define VARIABLES_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "LString.h"
20 #include <map>
21
22
23 ///
24 class Variables {
25 public:
26   /// 
27   void set(string const &, string const &);
28   /// 
29   string const get(string const &) const;
30   ///
31   bool isset(string const & var) const;
32   /// 
33   string const expand(string const &) const;
34 private:
35   ///
36   typedef std::map<string, string> Vars;
37   ///
38   Vars vars_;
39 };
40
41 #endif