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

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

Constructor & Destructor Documentation

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

References fd.

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

Member Function Documentation

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

References eof(), and valid().

static bool wibble::sys::Pipe::blocking ( int  err)
inlinestatic
void wibble::sys::Pipe::close ( )
inline
bool wibble::sys::Pipe::eof ( )
inline
std::string wibble::sys::Pipe::nextChunk ( )
inline

References buffer.

Referenced by wibble::sys::PipeThrough::run().

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

References assert, buffer, eof(), nextLine(), valid(), and wait().

Referenced by Main::waitForAck().

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

References _eof, assert, blocking(), buffer, fd, and valid().

Referenced by nextLine(), and wait().

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

References fd.

Referenced by active(), nextLine(), nextLineBlocking(), readMore(), and wait().

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

Member Data Documentation

bool wibble::sys::Pipe::_eof

Referenced by eof(), and readMore().

Buffer wibble::sys::Pipe::buffer
int wibble::sys::Pipe::fd

Referenced by close(), Pipe(), readMore(), valid(), wait(), and write().

Writer wibble::sys::Pipe::writer

Referenced by close(), and write().


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