Old fashion design for PC-104
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

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgString.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgString.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__STRING__INCLUDED__
  15. #define __LG__STRING__INCLUDED__
  16. #pragma once
  17. class CLgString
  18. {
  19. public:
  20. CLgString();
  21. CLgString( const CLgString& s );
  22. CLgString( LPCTSTR pString );
  23. virtual ~CLgString();
  24. public:
  25. int Length() const;
  26. CLgString& UpperCase();
  27. LPCTSTR c_str() const;
  28. public:
  29. CLgString& operator = ( TCHAR ch );
  30. CLgString& operator = ( LPCTSTR pString );
  31. CLgString& operator = ( const CLgString& s );
  32. CLgString& operator += ( LPCTSTR pString );
  33. CLgString& operator += ( const CLgString& s );
  34. CLgString& operator += ( const TCHAR ch );
  35. public:
  36. friend bool operator == ( const CLgString& s, LPCTSTR pString );
  37. friend bool operator != ( const CLgString& s1, const CLgString& s2 );
  38. public:
  39. friend CLgString operator + ( const CLgString& s1, const CLgString& s2 );
  40. public:
  41. friend bool TryLgStringToInt( const CLgString& s, int& value );
  42. friend CLgString IntToLgString( const int value );
  43. private:
  44. LPTSTR m_pString;
  45. };
  46. #endif