wibble  1.1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
wibble::sys::Pipe Struct Reference

#include <pipe.h>

Collaboration diagram for wibble::sys::Pipe:
Collaboration graph
[legend]

Classes

struct  Writer
 

Public Types

typedef std::deque< char > Buffer
 

Public Member Functions

 Pipe (int p)
 
 Pipe ()
 
void write (std::string what)
 
void close ()
 
bool valid ()
 
bool active ()
 
bool eof ()
 
int readMore ()
 
std::string nextChunk ()
 
std::string nextLine ()
 
void wait ()
 
std::string nextLineBlocking ()
 

Static Public Member Functions

static bool blocking (int err)
 

Public Attributes

Buffer buffer
 
int fd
 
bool _eof
 
Writer writer
 

Member Typedef Documentation

◆ Buffer

typedef std::deque< char > wibble::sys::Pipe::Buffer

Constructor & Destructor Documentation

◆ Pipe() [1/2]

wibble::sys::Pipe::Pipe ( int  p)
inline

◆ Pipe() [2/2]

wibble::sys::Pipe::Pipe ( )
inline

Member Function Documentation

◆ active()

bool wibble::sys::Pipe::active ( )
inline

References eof(), and valid().

◆ blocking()

static bool wibble::sys::Pipe::blocking ( int  err)
inlinestatic

◆ close()

void wibble::sys::Pipe::close ( )
inline

◆ eof()

bool wibble::sys::Pipe::eof ( )
inline

◆ nextChunk()

std::string wibble::sys::Pipe::nextChunk ( )
inline

◆ nextLine()

std::string wibble::sys::Pipe::nextLine ( )
inline

References assert, wibble::iterator(), readMore(), and valid().

Referenced by nextLineBlocking().

◆ nextLineBlocking()

std::string wibble::sys::Pipe::nextLineBlocking ( )
inline

◆ readMore()

int wibble::sys::Pipe::readMore ( )
inline

References assert, blocking(), and valid().

Referenced by nextLine(), and wait().

◆ valid()

bool wibble::sys::Pipe::valid ( )
inline

◆ wait()

void wibble::sys::Pipe::wait ( )
inline

◆ write()

void wibble::sys::Pipe::write ( std::string  what)
inline

Member Data Documentation

◆ _eof

bool wibble::sys::Pipe::_eof

Referenced by eof().

◆ buffer

Buffer wibble::sys::Pipe::buffer

◆ fd

int wibble::sys::Pipe::fd

◆ writer

Writer wibble::sys::Pipe::writer

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