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.

71 lines
2.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996.
  5. //
  6. // File: statchnk.hxx
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // Coupling:
  15. //
  16. // Notes:
  17. //
  18. // History: 10-14-1996 ericne Created
  19. //
  20. //----------------------------------------------------------------------------
  21. #ifndef _CSTATCHNK
  22. #define _CSTATCHNK
  23. // Don't reorder these lists!
  24. static WCHAR *ChunkState[2] = { L"TEXT",
  25. L"VALUE" };
  26. static WCHAR *BreakType[5] = { L"NO BREAK",
  27. L"END OF WORD",
  28. L"END OF SENTENCE",
  29. L"END OF PARAGRAPH",
  30. L"END OF CHAPTER" };
  31. //+---------------------------------------------------------------------------
  32. //
  33. // Class: CStatChunk ()
  34. //
  35. // Purpose: A wrapper class to handle the peculiarities of the STAT_CHUNK
  36. // structure.
  37. //
  38. // Interface: CStatChunk -- Default constructor
  39. // CStatChunk -- Copy Constructor
  40. // ~CStatChunk -- Destructor
  41. // operator= -- Overloaded assignment operator
  42. // operator== -- Overloaded logical equality operator
  43. // operator!= -- Overloaded logical inequality operator
  44. // Display -- Formatted display of the STAT_CHUNK fields
  45. //
  46. // History: 10-14-1996 ericne Created
  47. //
  48. // Notes:
  49. //
  50. //----------------------------------------------------------------------------
  51. class CStatChunk : public STAT_CHUNK
  52. {
  53. public:
  54. CStatChunk();
  55. CStatChunk( const CStatChunk & );
  56. ~CStatChunk();
  57. CStatChunk & operator=( const CStatChunk & );
  58. CStatChunk & operator=( const STAT_CHUNK & );
  59. void Display( FILE* = stdout ) const;
  60. };
  61. int operator==( const STAT_CHUNK &, const STAT_CHUNK & );
  62. int operator!=( const STAT_CHUNK &, const STAT_CHUNK & );
  63. #endif