CMiniLexicon::FindMajorSignatures(): use log file routines
[linguistica.git] / Suffix.h
bloba1f43c140ba9330d3df73706a1b0d3105b634653
1 // Suffix type with corpus count for suffix/signature-based morphology discovery
2 // Copyright © 2009 The University of Chicago
3 #ifndef SUFFIX_H
4 #define SUFFIX_H
6 // See the CMiniLexicon class in MiniLexicon.h for an overview of
7 // suffix/signature-based discovery of morphology.
8 // See also the very similar CPrefix class.
10 class CSuffix;
12 #include "Affix.h"
14 // XXX. we should avoid implicit instantiation of
15 // affix_list_view_item<CSuffix>, but swig can’t handle the
16 // appropriate declaration. (See Prefix.h for details.)
18 /// A list view item for suffixes.
19 /**
20 Contains all the necessary variables needed when displaying a
21 prefix and its data in a list view.
23 typedef linguistica::affix_list_view_item<CSuffix> CSuffixListViewItem;
25 /// A string represention of suffixes.
26 /**
27 This class is a string representation of prefixes.
30 class CSuffix : public CAffix {
31 public:
33 //--------------------------------------------------
34 // Constructors/Destructor
35 //--------------------------------------------------
37 CSuffix ( class CMiniLexicon* mini = NULL );
38 CSuffix (const CStringSurrogate&, class CMiniLexicon* mini = NULL );
39 virtual ~CSuffix();
41 //--------------------------------------------------
42 // Public accessor methods
43 //--------------------------------------------------
45 void ListDisplay ( class Q3ListView*, QMap<QString, QString>* filter = NULL, bool b = true, int char_count = 27 );
46 void MergeMeWithMyStems ( class CMiniLexicon* );
47 CParse& Express ( CParse&, bool bDisplayDeletees = TRUE ); // march 2004 jg
48 void OutputSuffix ( class Q3TextStream& );
49 QString DisplaySuffix ( bool ExpressDeletees = TRUE );
52 #endif // SUFFIX_H