diff options
Diffstat (limited to 'tvision/include/tv/fpstream.h')
-rw-r--r-- | tvision/include/tv/fpstream.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tvision/include/tv/fpstream.h b/tvision/include/tv/fpstream.h new file mode 100644 index 0000000..e4d4526 --- /dev/null +++ b/tvision/include/tv/fpstream.h @@ -0,0 +1,44 @@ +/* + * Turbo Vision - Version 2.0 + * + * Copyright (c) 1994 by Borland International + * All Rights Reserved. + * + +Modified by Robert H”hne to be used for RHIDE. +Modified to compile with gcc v3.x by Salvador E. Tropea, with the help of +Andris Pavenis and Christoph Bauer. + + * + * + */ + +/* ------------------------------------------------------------------------*/ +/* */ +/* class fpstream */ +/* */ +/* Base class for reading and writing streamable objects to */ +/* bidirectional file streams */ +/* */ +/* ------------------------------------------------------------------------*/ + +#if defined( Uses_fpstream ) && !defined( __fpstream ) +#define __fpstream + +class CLY_EXPORT fpstream : public fpbase, public iopstream +{ +public: + fpstream(); + fpstream( const char *, CLY_OpenModeT, int = CLY_FBOpenProtDef ); + fpstream( CLY_OpenModeT, const char* , int = CLY_FBOpenProtDef ); + fpstream( int ); + fpstream( int, char *, int ); + ~fpstream(); + long filelength(); + + CLY_filebuf *rdbuf(); + void open( const char *, CLY_OpenModeT, int = CLY_FBOpenProtDef ); +}; + +#endif // Uses_fpstream + |