]> git.lyx.org Git - features.git/blob - src/mathed/math_macrotable.h
Replace LString.h with support/std_string.h,
[features.git] / src / mathed / math_macrotable.h
1 // -*- C++ -*-
2 /**
3  * \file math_macrotable.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_MACROTABLE_H
13 #define MATH_MACROTABLE_H
14
15 #include <map>
16 #include "support/std_string.h"
17 #include "math_atom.h"
18
19
20 class MathMacroTable {
21 public:
22         ///
23         static void create(MathAtom const &);
24         ///
25         static MathAtom & provide(string const & name);
26         ///
27         static bool has(string const & name);
28         ///
29         static void dump();
30 private:
31         ///
32         typedef std::map<string, MathAtom> table_type;
33         //
34         static table_type macro_table;
35 };
36
37 #endif