ost::ttystream(3)
π ost::ttystream β bestie's guide to the tty stream glow-up π
okay so. imagine fstream but for tty devices and it's lowkey the same vibe? that's ost::ttystream, from the GNU CommonC++ library functions manual. it's a more natural C++ ttystream class for use by non-threaded applications, and honestly? she's giving main character energy. π
β¨ NAME β¨
ost::ttystream β a more natural C++ ttystream class for use by non-threaded applications.
πΈ SYNOPSIS πΈ
#include <serial.h>
Inherits ost::TTYStream.
π¦ Public Member Functions
ttystream ()β Construct an unopenedttystreamobject.ttystream (const char *name)β Construct andopena 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.
π Additional Inherited Members
π 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. fr fr, it just gets you. π
Author
David Sugar dyfet@ostel.com
C++ fstream style ttystream class. periodt.
π§ Constructor & Destructor Documentation π§
ost::ttystream::ttystream ()
Construct an unopened ttystream object. no device, no drama, just vibes β¨
ost::ttystream::ttystream (const char * 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. the way that lets you shove options right in there? iconic.
Parameters
name of file and serial options.
π Member Function Documentation π
void ost::ttystream::close (void)
Close method for a tty stream. say bye bestie π
void ost::ttystream::open (const char * name)
Open method for a tty stream.
Parameters
name filename to open.
bool ost::ttystream::operator! () [inline]
Test to see if stream is opened. vibe check, basically. π«Ά
π Author π
Generated automatically by Doxygen for GNU CommonC++ from the source code.
no cap, this whole page was auto-generated for ya by Doxygen for GNU CommonC++, stamped Sun Dec 27 2020, and the manual section is ost::ttystream(3). slay, go open some streams ππ¦πΈ
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms