actual/packages/node-libofx/OpenSP-1.5.2/lib/Recognizer.h
2022-04-28 22:44:38 -04:00

43 lines
910 B
C++

// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#ifndef Recognizer_INCLUDED
#define Recognizer_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include "Resource.h"
#include "Owner.h"
#include "XcharMap.h"
#include "types.h"
#include "Vector.h"
#include "Trie.h"
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
class Messenger;
class InputSource;
class Recognizer : public Resource {
public:
Recognizer(Trie *, const XcharMap<EquivCode> &);
Recognizer(Trie *, const XcharMap<EquivCode> &, Vector<Token> &);
~Recognizer();
Token recognize(InputSource *, Messenger &) const;
private:
Recognizer(const Recognizer &); // undefined
void operator=(const Recognizer &); // undefined
Boolean multicode_;
Owner<Trie> trie_;
XcharMap<EquivCode> map_;
Vector<Token> suppressTokens_;
};
#ifdef SP_NAMESPACE
}
#endif
#endif /* not Recognizer_INCLUDED */