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.

43 lines
1.3 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Turbo Vision - Version 2.0
  3. *
  4. * Copyright (c) 1994 by Borland International
  5. * All Rights Reserved.
  6. *
  7. Modified by Robert H�hne to be used for RHIDE.
  8. Modified to compile with gcc v3.x by Salvador E. Tropea, with the help of
  9. Andris Pavenis and Christoph Bauer.
  10. *
  11. *
  12. */
  13. /* ------------------------------------------------------------------------*/
  14. /* */
  15. /* class fpstream */
  16. /* */
  17. /* Base class for reading and writing streamable objects to */
  18. /* bidirectional file streams */
  19. /* */
  20. /* ------------------------------------------------------------------------*/
  21. #if defined( Uses_fpstream ) && !defined( __fpstream )
  22. #define __fpstream
  23. class fpstream : public fpbase, public iopstream
  24. {
  25. public:
  26. fpstream();
  27. fpstream( const char *, CLY_OpenModeT, int = CLY_FBOpenProtDef );
  28. fpstream( int );
  29. fpstream( int, char *, int );
  30. ~fpstream();
  31. long filelength();
  32. CLY_filebuf *rdbuf();
  33. void open( const char *, CLY_OpenModeT, int = CLY_FBOpenProtDef );
  34. };
  35. #endif // Uses_fpstream