WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
wpi::uv::Process::Option Struct Reference

Structure for Spawn() option temporaries. More...

#include <wpinet/uv/Process.h>

Public Types

enum  Type {
  kNone , kArg , kEnv , kCwd ,
  kUid , kGid , kSetFlags , kClearFlags ,
  kStdioIgnore , kStdioInheritFd , kStdioInheritPipe , kStdioCreatePipe
}
 

Public Member Functions

 Option ()
 
 Option (const char *arg)
 
 Option (const std::string &arg)
 
 Option (std::string_view arg)
 
 Option (const SmallVectorImpl< char > &arg)
 
 Option (Type type)
 

Public Attributes

Type m_type = kArg
 
std::string m_strData
 
union { 
 
   const char *   str 
 
   uv_uid_t   uid 
 
   uv_gid_t   gid 
 
   unsigned int   flags 
 
   struct { 
 
      size_t   index 
 
      union { 
 
         int   fd 
 
         Pipe *   pipe 
 
      }  
 
      unsigned int   flags 
 
   }   stdio 
 
m_data 
 

Detailed Description

Structure for Spawn() option temporaries.

This is a reference type, so if this value is stored outside of a temporary, be careful about overwriting what it points to.

Member Enumeration Documentation

◆ Type

Enumerator
kNone 
kArg 
kEnv 
kCwd 
kUid 
kGid 
kSetFlags 
kClearFlags 
kStdioIgnore 
kStdioInheritFd 
kStdioInheritPipe 
kStdioCreatePipe 

Constructor & Destructor Documentation

◆ Option() [1/6]

wpi::uv::Process::Option::Option ( )
inline

◆ Option() [2/6]

wpi::uv::Process::Option::Option ( const char * arg)
inline

◆ Option() [3/6]

wpi::uv::Process::Option::Option ( const std::string & arg)
inline

◆ Option() [4/6]

wpi::uv::Process::Option::Option ( std::string_view arg)
inline

◆ Option() [5/6]

wpi::uv::Process::Option::Option ( const SmallVectorImpl< char > & arg)
inline

◆ Option() [6/6]

wpi::uv::Process::Option::Option ( Type type)
inlineexplicit

Member Data Documentation

◆ fd

int wpi::uv::Process::Option::fd

◆ flags

unsigned int wpi::uv::Process::Option::flags

◆ gid

uv_gid_t wpi::uv::Process::Option::gid

◆ index

size_t wpi::uv::Process::Option::index

◆ [union]

union { ... } wpi::uv::Process::Option::m_data

◆ m_strData

std::string wpi::uv::Process::Option::m_strData

◆ m_type

Type wpi::uv::Process::Option::m_type = kArg

◆ pipe

Pipe* wpi::uv::Process::Option::pipe

◆ [struct]

struct { ... } wpi::uv::Process::Option::stdio

◆ str

const char* wpi::uv::Process::Option::str

◆ uid

uv_uid_t wpi::uv::Process::Option::uid

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