ost::ttystream(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– 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 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.

πŸ’œ 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