formula.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  *
00003  * $Id: formula.h,v 1.7 2001/03/19 19:27:40 root Exp $
00004  *
00005  * Copyright (C) 1997-2008 by Dimitri van Heesch.
00006  *
00007  * Permission to use, copy, modify, and distribute this software and its
00008  * documentation under the terms of the GNU General Public License is hereby 
00009  * granted. No representations are made about the suitability of this software 
00010  * for any purpose. It is provided "as is" without express or implied warranty.
00011  * See the GNU General Public License for more details.
00012  *
00013  * Documents produced by Doxygen are derivative works derived from the
00014  * input used in their production; they are not affected by this license.
00015  *
00016  */
00017 
00018 #ifndef FORMULA_H
00019 #define FORMULA_H
00020 
00021 #include "qtbc.h"
00022 #include <qlist.h>
00023 #include <qdict.h>
00024 
00025 class Formula
00026 {
00027   public:
00028     Formula(const char *text);
00029    ~Formula();
00030     int getId();
00031     QCString getFormulaText() const { return form; }
00032     
00033   private:
00034     int number;
00035     QCString form;
00036 };
00037 
00038 class FormulaList : public QList<Formula>
00039 {
00040   public:
00041     void generateBitmaps(const char *path);
00042 };
00043 
00044 class FormulaListIterator : public QListIterator<Formula>
00045 {
00046   public:
00047     FormulaListIterator(const FormulaList &l) : 
00048       QListIterator<Formula>(l) {}
00049 };
00050 
00051 class FormulaDict : public QDict<Formula>
00052 {
00053   public:
00054     FormulaDict(uint size) : 
00055       QDict<Formula>(size) {}
00056    ~FormulaDict() {}
00057 };
00058 
00059 #endif



Generated on Mon Mar 31 10:58:38 2008 by  doxygen 1.5.1