gramrule.h

Go to the documentation of this file.
00001 // Copyright (C) 2006 Bryan Jacobson <bryanjacobson@users.sourceforge.net>
00002 // This program is licensed under the terms of the GNU General Public License
00003 // version 2, as published by the Free Software Foundation.
00004 // This program is distributed in the hope that it will be useful,
00005 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00006 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007 
00011 
00012 #ifndef GRAMRULE_H
00013 #define GRAMRULE_H
00014 
00016 class GramRule
00017 {
00018   public:
00019     GramRule(Id gramType, Data *pData);
00020     static void      ReadGramFile(char *fileName);
00021     static GramRule *Lookup(Id gramType1, Id gramType2);
00022     Id               GetGramType() { return mGramType; };
00023     Data            *GetData()     { return mpData;    }; 
00024     GramRule        *Next()        { return mpNext;    };
00025   private:
00026     Id        mGramType;
00027     Data     *mpData;
00028     GramRule *mpNext;
00029 };
00030 
00031 #endif // GRAMRULE_H

Generated on Sun Oct 8 09:32:09 2006 for gabbie by  doxygen 1.4.6