"Fossies" - the Fresh Open Source Software Archive

Member "OpenSP-1.5.2/lib/Recognizer.h" (5 Nov 2005, 910 Bytes) of package /linux/misc/old/OpenSP-1.5.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Recognizer.h" see the Fossies "Dox" file reference documentation.

    1 // Copyright (c) 1994 James Clark
    2 // See the file COPYING for copying permission.
    3 
    4 #ifndef Recognizer_INCLUDED
    5 #define Recognizer_INCLUDED 1
    6 #ifdef __GNUG__
    7 #pragma interface
    8 #endif
    9 
   10 #include "Resource.h"
   11 #include "Owner.h"
   12 #include "XcharMap.h"
   13 #include "types.h"
   14 #include "Vector.h"
   15 #include "Trie.h"
   16 
   17 #ifdef SP_NAMESPACE
   18 namespace SP_NAMESPACE {
   19 #endif
   20 
   21 class Messenger;
   22 class InputSource;
   23 
   24 class Recognizer : public Resource {
   25 public:
   26   Recognizer(Trie *, const XcharMap<EquivCode> &);
   27   Recognizer(Trie *, const XcharMap<EquivCode> &, Vector<Token> &);
   28   ~Recognizer();
   29   Token recognize(InputSource *, Messenger &) const;
   30 private:
   31   Recognizer(const Recognizer &); // undefined
   32   void operator=(const Recognizer &); // undefined
   33   Boolean multicode_;
   34   Owner<Trie> trie_;
   35   XcharMap<EquivCode> map_;
   36   Vector<Token> suppressTokens_;
   37 };
   38 
   39 #ifdef SP_NAMESPACE
   40 }
   41 #endif
   42 
   43 #endif /* not Recognizer_INCLUDED */