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

Classes

struct  Inherit
 

Public Member Functions

 StdIn (Inherit)
 Inherits child process Input from parent process. More...
 
template<int N>
 StdIn (const char(&item)[N])
 Fills standard input with content of a C-String. More...
 
 StdIn (StringView string)
 Fills standard input with content of a StringView. More...
 
 StdIn (Span< const char > span)
 Fills standard input with content of a Span. More...
 
 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)
 
 StdStream ()=default
 
 StdStream (AlreadySetup)
 
- Public Member Functions inherited from SC::Process::StdStream
 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)
 

Friends

struct ProcessChain
 

Additional Inherited Members

- Protected Types inherited from SC::Process::StdStream
enum class  Operation {
  AlreadySetup ,
  Inherit ,
  Ignore ,
  ExternalPipe ,
  FileDescriptor ,
  Vector ,
  String ,
  WritableSpan ,
  ReadableSpan
}
 
- Protected Member Functions inherited from SC::Process::StdStream
 StdStream (AlreadySetup)
 
- Protected Attributes inherited from SC::Process::StdStream
Operation operation = Operation::Inherit
 
Span< const char > readableSpan
 
Span< char > writableSpan
 
Stringstring
 
Vector< char > * vector
 
FileDescriptor::Handle fileDescriptor
 
PipeDescriptorpipeDescriptor
 

Constructor & Destructor Documentation

◆ StdIn() [1/4]

SC::Process::StdIn::StdIn ( Inherit  )
inline

Inherits child process Input from parent process.

◆ StdIn() [2/4]

template<int N>
SC::Process::StdIn::StdIn ( const char(&)  item[N])
inline

Fills standard input with content of a C-String.

◆ StdIn() [3/4]

SC::Process::StdIn::StdIn ( StringView  string)
inline

Fills standard input with content of a StringView.

◆ StdIn() [4/4]

SC::Process::StdIn::StdIn ( Span< const char >  span)
inline

Fills standard input with content of a Span.

Member Function Documentation

◆ StdStream() [1/3]

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

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

◆ StdStream() [2/3]

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

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

◆ StdStream() [3/3]

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

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


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