lyx_mirror/src/mathed/math_macrotable.h

38 lines
618 B
C
Raw Normal View History

// -*- C++ -*-
#ifndef MATH_MACROTABLE_H
#define MATH_MACROTABLE_H
#include <map>
#include "LString.h"
#include "math_atom.h"
#ifdef __GNUG__
#pragma interface
#endif
class MathArray;
///
struct MathMacroTable {
public:
///
static void create(string const &, int, string const &);
///
static void create(string const &, int, MathArray const &);
///
static MathAtom & provide(string const &);
///
static bool has(string const &);
///
static void builtinMacros();
private:
///
typedef std::map<string, MathAtom> table_type;
//
static table_type macro_table;
public:
///
static void dump();
};
#endif