]> git.lyx.org Git - lyx.git/blob - src/mathed/math_macrotable.h
The std::string mammoth path.
[lyx.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 "math_atom.h"
16
17 #include <map>
18
19
20 class MathMacroTable {
21 public:
22         ///
23         static void create(MathAtom const &);
24         ///
25         static MathAtom & provide(std::string const & name);
26         ///
27         static bool has(std::string const & name);
28         ///
29         static void dump();
30 private:
31         ///
32         typedef std::map<std::string, MathAtom> table_type;
33         //
34         static table_type macro_table;
35 };
36
37 #endif