FilterText.h
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 1k
Development Platform:

C/C++

  1. // -------------------------------------------------------------------------
  2. // 文件名 : FilterText.h
  3. // 创建者 : 谢茂培 (Hsie)
  4. // 创建时间 : 2003-07-23 10:13:07
  5. // 功能描述 :
  6. //
  7. // -------------------------------------------------------------------------
  8. #ifndef __FILTERTEXT_H__
  9. #define __FILTERTEXT_H__
  10. #include "unknwn.h"
  11. // The following ifdef block is the standard way of creating macros which make exporting 
  12. // from a DLL simpler. All files within this DLL are compiled with the FILTERTEXT_EXPORTS
  13. // symbol defined on the command line. this symbol should not be defined on any project
  14. // that uses this DLL. This way any other project whose source files include this file see 
  15. // FILTERTEXT_API functions as being imported from a DLL, wheras this DLL sees symbols
  16. // defined with this macro as being exported.
  17. #ifdef FILTERTEXT_STATICLIB
  18. #define FILTERTEXT_API
  19. #else
  20. #ifdef FILTERTEXT_EXPORTS
  21. #define FILTERTEXT_API __declspec(dllexport)
  22. #else
  23. #define FILTERTEXT_API __declspec(dllimport)
  24. #endif
  25. #endif
  26. const TCHAR leadchar_common = '=';
  27. const TCHAR leadchar_advance = '+';
  28. const TCHAR leadchar_ignore = '-';
  29. const TCHAR leadchar_insensitive = '@';
  30. struct ITextFilter : IUnknown
  31. {
  32. virtual BOOL AddExpression(LPCTSTR szExp) = 0;
  33. virtual BOOL Clearup() = 0;
  34. virtual BOOL IsTextPass(LPCTSTR text) = 0;
  35. };
  36. extern "C" 
  37. FILTERTEXT_API HRESULT CreateTextFilter(ITextFilter** ppTextFilter);
  38. #endif // __FILTERTEXT_H__