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

#include <UT_WritePipe.h>

Public Member Functions

 UT_WritePipe (const char *cmd=0, bool change_process_group=false)
 
 ~UT_WritePipe ()
 
FILE * open (const char *cmd)
 
FILE * open (const char *cmd, FILE *kid_stdout, FILE *kid_stderr)
 
int close (bool wait_for_child_to_terminate=false)
 
bool isComplete (bool block=false)
 
void suspend ()
 
void restart ()
 
void terminate ()
 
bool isSuspended () const
 
FILE * getFilePtr ()
 
int getErrno () const
 
int getStatus () const
 
pid_t getPid () const
 

Detailed Description

Examples:
FS/FS_Background.C.

Definition at line 29 of file UT_WritePipe.h.

Constructor & Destructor Documentation

UT_WritePipe::UT_WritePipe ( const char *  cmd = 0,
bool  change_process_group = false 
)
explicit
UT_WritePipe::~UT_WritePipe ( )

Member Function Documentation

int UT_WritePipe::close ( bool  wait_for_child_to_terminate = false)
Examples:
FS/FS_Background.C.
int UT_WritePipe::getErrno ( ) const
inline

Definition at line 77 of file UT_WritePipe.h.

FILE* UT_WritePipe::getFilePtr ( )
inline

Definition at line 72 of file UT_WritePipe.h.

pid_t UT_WritePipe::getPid ( ) const
inline

Definition at line 84 of file UT_WritePipe.h.

int UT_WritePipe::getStatus ( void  ) const
inline

Definition at line 81 of file UT_WritePipe.h.

bool UT_WritePipe::isComplete ( bool  block = false)
Examples:
FS/FS_Background.C.
bool UT_WritePipe::isSuspended ( ) const
FILE* UT_WritePipe::open ( const char *  cmd)
inline

Open a command as a write pipe. The file descriptor returned will be the command's stdin.

Examples:
FS/FS_Background.C.

Definition at line 42 of file UT_WritePipe.h.

FILE* UT_WritePipe::open ( const char *  cmd,
FILE *  kid_stdout,
FILE *  kid_stderr 
)

Open a command as a write pipe. The file descriptor returned will be the command's stdin. If the kid_stdout file descriptor is given, this will become stdout for the child. If kid_stderr is specified, it will be come stderr for the child.

void UT_WritePipe::restart ( )
void UT_WritePipe::suspend ( )
void UT_WritePipe::terminate ( )

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