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.

34 lines
643 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name :
  4. SInStrm.h
  5. Abstract:
  6. A lightweight implementation of input streams using strings
  7. Author:
  8. Neil Allain ( a-neilal ) August-1997
  9. Revision History:
  10. --*/
  11. #pragma once
  12. #include "InStrm.h"
  13. class StringInStream : public InStream, public BaseStringBuffer
  14. {
  15. public:
  16. StringInStream( const String& );
  17. virtual HRESULT readChar( _TCHAR& );
  18. virtual HRESULT read( CharCheck&, String& );
  19. virtual HRESULT skip( CharCheck& );
  20. virtual HRESULT back( size_t );
  21. private:
  22. LPTSTR m_pos;
  23. LPTSTR m_end;
  24. };