diff options
Diffstat (limited to 'migratetags/matchers/matcher.h')
-rw-r--r-- | migratetags/matchers/matcher.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/migratetags/matchers/matcher.h b/migratetags/matchers/matcher.h new file mode 100644 index 0000000..1448c2e --- /dev/null +++ b/migratetags/matchers/matcher.h @@ -0,0 +1,25 @@ +#ifndef matcher_h +#define matcher_h + +class Matcher { +public: + +// Compares 2 words and tries to give a percentage assurance of a match +// TODO: could use more smarts here +// +virtual int compare(const SWBuf &s1, const SWBuf &s2) = 0; + +// This is where the magic happens +// +// we must point each targetMod word to an XMLTag +// +// when the magic is done, and your guess is made +// populate targetWordTags with the integer offset +// into wordTags for which XMLTag you think it should +// be. +// +virtual void matchWords(vector<int> &targetWordTags, const vector<SWBuf> &targetWords, const vector<SWBuf> &fromWords, vector<int> fromWordTags) = 0; + + +}; +#endif |