2 // Copyright © 2009 The University of Chicago
8 #include "TemplateCollection.h"
11 enum RULETYPE
{SUBSTITUTION
, DELETION
, SUBSTITUTION2FOR1
};
12 class CSignatureCollection
;
24 class CRule
: public CLParse
32 TCollection
<CLParse
> Sigs1
;
33 TCollection
<CLParse
> Sigs2
;
41 CRule( RULETYPE
, QString
& strRule
);
44 // void Display(CListCtrl&, int position);
50 void SetInput(QString
);
51 void SetOutput (QString
);
52 QString
GetLeftEnvString();
54 void SetLeftEnv(char);
55 QString
GetRightEnvString();
57 void SetRightEnv(char);
59 void SetType(RULETYPE
);
61 void AddExample(QString
);
62 void SetExamples(QString
& ex
);
64 CParse
& GetExamples();
67 QString
SpellOutRule();
69 void IncrementRuleCount(int n
= 1);
71 float GetSortingQuantity() const; // number of stems that use it.