Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997
  5. //
  6. // File: stemcf.hxx
  7. //
  8. // Contents: Stemmer 'class factory'.
  9. //
  10. // History: weibz, 10-Sep-1997 created
  11. //
  12. //--------------------------------------------------------------------------
  13. #if !defined( __STEMCF_HXX__ )
  14. #define __STEMCF_HXX__
  15. //+-------------------------------------------------------------------------
  16. //
  17. // Class: CStemmerCF
  18. //
  19. // Purpose: Class factory for all Stemmers
  20. //
  21. //
  22. //--------------------------------------------------------------------------
  23. class CStemmerCF : public IClassFactory
  24. {
  25. public:
  26. CStemmerCF( LCID lcid );
  27. //
  28. // From IUnknown
  29. //
  30. virtual SCODE STDMETHODCALLTYPE QueryInterface( REFIID riid,
  31. void ** ppvObject);
  32. virtual ULONG STDMETHODCALLTYPE AddRef();
  33. virtual ULONG STDMETHODCALLTYPE Release();
  34. //
  35. // From IClassFactory
  36. //
  37. virtual SCODE STDMETHODCALLTYPE CreateInstance( IUnknown * pUnkOuter,
  38. REFIID riid, void * * ppvObject );
  39. virtual SCODE STDMETHODCALLTYPE LockServer( BOOL fLock );
  40. protected:
  41. virtual ~CStemmerCF();
  42. long _cRefs;
  43. LCID _lcid;
  44. };
  45. #endif // __STEMCF_HXX__