TSDuck v3.46-4816
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

Utilities for standard input, output, and error. More...

#include <tsStdio.h>

Classes

class  BinaryMode
 Put a standard stream stream in binary mode. More...
 
class  Redirector
 A class to redirect a standard stream. More...
 

Public Types

enum  Id {
  STDIN ,
  STDOUT ,
  STDERR
}
 Identifiers for standard input streams. More...
 

Static Public Member Functions

static void Flush (Id id)
 Flush all internal buffers of a standard stream.
 
static SysHandleType Handle (Id id)
 Get the system handle of a standard stream.
 
static bool IsTerminal (Id id)
 Check if a standard stream is a terminal.
 
static const UString & Name (Id id)
 Get the name of a standard stream.
 

Detailed Description

Utilities for standard input, output, and error.

This class has no instance, this is only a set of utilities.

Member Enumeration Documentation

◆ Id

Identifiers for standard input streams.

Enumerator
STDIN 

Identify standard input.

STDOUT 

Identify standard output.

STDERR 

Identify standard error.

Member Function Documentation

◆ Handle()

static SysHandleType ts::Stdio::Handle ( Id  id)
static

Get the system handle of a standard stream.

Parameters
[in]idStandard stream to identify.
Returns
The system handle of a standard stream.

◆ Name()

static const UString & ts::Stdio::Name ( Id  id)
static

Get the name of a standard stream.

Parameters
[in]idStandard stream to identify.
Returns
A constant reference to a string such as "standard input".

◆ IsTerminal()

static bool ts::Stdio::IsTerminal ( Id  id)
inlinestatic

Check if a standard stream is a terminal.

Parameters
[in]idStandard stream to check.
Returns
True if the standard stream is a terminal.

◆ Flush()

static void ts::Stdio::Flush ( Id  id)
static

Flush all internal buffers of a standard stream.

Parameters
[in]idStandard stream to flush.

The documentation for this class was generated from the following file: