logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ost::ttystream - A more natural C++ 'ttystream' class for use by non-threaded applications.

Author

       Generated automatically by Doxygen for GNU CommonC++ from the source code.

GNU CommonC++                                    Sun Dec 27 2020                               ost::ttystream(3)

Constructor & Destructor Documentation

ost::ttystream::ttystream()
       Construct an unopened 'ttystream' object.

   ost::ttystream::ttystream(constchar*name)
       Construct and 'open' a tty stream object. A filename in the form 'device:options[,options]' may be used
       to pass device options as part of the open.

       Parametersname of file and serial options.

Detailed Description

       A more natural C++ 'ttystream' class for use by non-threaded applications.

       This class behaves a lot more like fstream and similar classes.

       Author
           David Sugar dyfet@ostel.com

       C++ 'fstream' style ttystream class.

Member Function Documentation

voidost::ttystream::close(void)
       Close method for a tty stream.

   voidost::ttystream::open(constchar*name)
       Open method for a tty stream.

       Parametersname filename to open.

   boolost::ttystream::operator!()[inline]
       Test to see if stream is opened.

Name

       ost::ttystream - A more natural C++ 'ttystream' class for use by non-threaded applications.

Synopsis

       #include <serial.h>

       Inherits ost::TTYStream.

   PublicMemberFunctionsttystream ()
           Construct an unopened 'ttystream' object.
       ttystream (const char *name)
           Construct and 'open' a tty stream object.
       void open (const char *name)
           Open method for a tty stream.
       void close (void)
           Close method for a tty stream.
       bool operator! ()
           Test to see if stream is opened.

   AdditionalInheritedMembers

See Also