ftp.nice.ch/pub/next/developer/languages/sgml/sp.1.1.1.I.bs.tar.gz#/sp-1.1.1.I.bs/lib/Recognizer.h

This is Recognizer.h in view mode; [Download] [Up]

// 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"

#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif

class Messenger;
class InputSource;
class Trie;

class Recognizer : public Resource {
public:
  Recognizer(Trie *, const XcharMap<EquivCode> &);
  Recognizer(Trie *, const XcharMap<EquivCode> &, Vector<Token> &);
  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 */

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.