WPILibC++  2020.3.2-60-g3011ebe
wpi::uv::Process::Option Struct Reference

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

#include <Process.h>

Public Types

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

Public Member Functions

 Option (const char *arg)
 Option (const std::string &arg)
 Option (StringRef arg)
 Option (const SmallVectorImpl< char > &arg)
 Option (const Twine &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

Detailed Description

Structure for Spawn() option temporaries.

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

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