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