HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ReadPipe Class Reference

#include <UT_ReadPipe.h>

Public Types

enum  Descriptor { Descriptor::Stdout = 0, Descriptor::Stderr }
 

Public Member Functions

 UT_ReadPipe ()
 
 ~UT_ReadPipe ()
 
FILE * open (const char *cmd, const Descriptor desc=Descriptor::Stdout)
 
int close ()
 
FILE * getFilePtr ()
 
int getErrno () const
 
int getStatus () const
 
pid_t getPid () const
 

Detailed Description

Definition at line 22 of file UT_ReadPipe.h.

Member Enumeration Documentation

Enumerator
Stdout 
Stderr 

Definition at line 32 of file UT_ReadPipe.h.

Constructor & Destructor Documentation

UT_ReadPipe::UT_ReadPipe ( )
UT_ReadPipe::~UT_ReadPipe ( )

Member Function Documentation

int UT_ReadPipe::close ( )
int UT_ReadPipe::getErrno ( ) const
inline

Definition at line 44 of file UT_ReadPipe.h.

FILE* UT_ReadPipe::getFilePtr ( )
inline

Definition at line 41 of file UT_ReadPipe.h.

pid_t UT_ReadPipe::getPid ( ) const
inline

Definition at line 51 of file UT_ReadPipe.h.

int UT_ReadPipe::getStatus ( ) const
inline

Definition at line 48 of file UT_ReadPipe.h.

FILE* UT_ReadPipe::open ( const char *  cmd,
const Descriptor  desc = Descriptor::Stdout 
)

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