Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::Process::StdStream Struct Reference
Inheritance diagram for SC::Process::StdStream:
SC::Process::StdIn SC::Process::StdOut

Classes

struct  AlreadySetup
 

Public Member Functions

 StdStream (String &externalString)
 Read the process standard output/error into the given String. More...
 
 StdStream (Vector< char > &externalVector)
 Read the process standard output/error into the given Vector. More...
 
 StdStream (FileDescriptor &&file)
 Redirects child process standard output/error to a given file descriptor. More...
 
 StdStream (PipeDescriptor &pipe)
 

Protected Types

enum class  Operation {
  AlreadySetup ,
  Inherit ,
  Ignore ,
  ExternalPipe ,
  FileDescriptor ,
  Vector ,
  String ,
  WritableSpan ,
  ReadableSpan
}
 

Protected Member Functions

 StdStream (AlreadySetup)
 

Protected Attributes

Operation operation = Operation::Inherit
 
Span< const char > readableSpan
 
Span< char > writableSpan
 
Stringstring
 
Vector< char > * vector
 
FileDescriptor::Handle fileDescriptor
 
PipeDescriptorpipeDescriptor
 

Friends

struct Process
 
struct ProcessChain
 

Constructor & Destructor Documentation

◆ StdStream() [1/3]

SC::Process::StdStream::StdStream ( String externalString)
inline

Read the process standard output/error into the given String.

◆ StdStream() [2/3]

SC::Process::StdStream::StdStream ( Vector< char > &  externalVector)
inline

Read the process standard output/error into the given Vector.

◆ StdStream() [3/3]

SC::Process::StdStream::StdStream ( FileDescriptor &&  file)
inline

Redirects child process standard output/error to a given file descriptor.


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