Source code of Windows XP (NT5)
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.

55 lines
1.4 KiB

  1. /*--------------------------------------------------------------------------*
  2. *
  3. * Microsoft Windows
  4. * Copyright (C) Microsoft Corporation, 1992 - 1999
  5. *
  6. * File: ststring.h
  7. *
  8. * Contents: Interface file for CStringTableString
  9. *
  10. * History: 28-Oct-98 jeffro Created
  11. *
  12. *--------------------------------------------------------------------------*/
  13. #ifndef STSTRING_H
  14. #define STSTRING_H
  15. #pragma once
  16. #include "tstring.h"
  17. /*+-------------------------------------------------------------------------*
  18. * CStringTableString
  19. *
  20. *
  21. *--------------------------------------------------------------------------*/
  22. class CStringTableString : public CStringTableStringBase
  23. {
  24. typedef CStringTableStringBase BaseClass;
  25. public:
  26. CStringTableString ()
  27. : BaseClass (GetStringTable()) {}
  28. CStringTableString (const CStringTableString& other)
  29. : BaseClass (other) {}
  30. CStringTableString (const tstring& str)
  31. : BaseClass (GetStringTable(), str) {}
  32. CStringTableString& operator= (const CStringTableString& other)
  33. { BaseClass::operator= (other); return (*this); }
  34. CStringTableString& operator= (const tstring& str)
  35. { BaseClass::operator= (str); return (*this); }
  36. CStringTableString& operator= (LPCTSTR psz)
  37. { BaseClass::operator= (psz); return (*this); }
  38. private:
  39. IStringTablePrivate* GetStringTable() const;
  40. };
  41. #endif /* STSTRING_H */