Brief description of class still missing. More...
#include <Stream.h>
Public Member Functions | |
void | close () |
virtual void | event (short type)=0 |
virtual short | eventTypes ()=0 |
int | fileDescriptor () const |
bool | isActive () const |
void | setParent (Stream *parent) |
Stream () | |
virtual | ~Stream () |
Protected Member Functions | |
virtual void | childDeleted (Stream *) |
void | setFileDescriptor (int fd) |
Brief description of class still missing.
Full description of class still missing
GpCoreTools::Stream::~Stream | ( | ) | [virtual] |
Description of destructor still missing
References childDeleted(), close(), and TRACE.
{ TRACE; close(); if(_parent) { _parent->childDeleted(this); } }
virtual void GpCoreTools::Stream::childDeleted | ( | Stream * | ) | [inline, protected, virtual] |
Reimplemented in GpCoreTools::TcpServerStream, and GpCoreTools::UnixServerStream.
Referenced by ~Stream().
{}
void GpCoreTools::Stream::close | ( | ) |
virtual void GpCoreTools::Stream::event | ( | short | type | ) | [pure virtual] |
virtual short GpCoreTools::Stream::eventTypes | ( | ) | [pure virtual] |
int GpCoreTools::Stream::fileDescriptor | ( | ) | const [inline] |
Referenced by MasterStream::connect(), LinkStream::connect(), GpCoreTools::UnixClientStream::connect(), GpCoreTools::TcpClientStream::connect(), PeerTracker::event(), GpCoreTools::UnixServerStream::event(), GpCoreTools::UnixClientStream::event(), GpCoreTools::TcpServerStream::event(), GpCoreTools::Serial::event(), GpCoreTools::TcpClientStream::event(), GpCoreTools::EventLoop::exec(), GpCoreTools::ScreenClient::hungUp(), PeerTracker::listen(), GpCoreTools::UdpServerStream::listen(), GpCoreTools::UnixServerStream::listen(), GpCoreTools::TcpServerStream::listen(), PeerTracker::PeerTracker(), UbxDevice::requestNavigation(), UbxDevice::sendState(), UbxDevice::startBroadcast(), GpCoreTools::TcpClientStream::TcpClientStream(), GpCoreTools::TcpServerStream::TcpServerStream(), TimeSlaveStream::TimeSlaveStream(), GpCoreTools::UdpServerStream::UdpServerStream(), GpCoreTools::UnixClientStream::UnixClientStream(), GpCoreTools::UnixServerStream::UnixServerStream(), and GpCoreTools::Serial::write().
{return _fileDescriptor;}
bool GpCoreTools::Stream::isActive | ( | ) | const [inline] |
Referenced by GpCoreTools::Serial::isConnected().
{return _fileDescriptor>0;}
void GpCoreTools::Stream::setFileDescriptor | ( | int | fd | ) | [inline, protected] |
Referenced by GpCoreTools::EventStream::EventStream(), TimeSlaveStream::hungUp(), GpCoreTools::ScreenClient::hungUp(), GpCoreTools::Serial::hungUp(), PeerTracker::PeerTracker(), GpCoreTools::TcpClientStream::TcpClientStream(), GpCoreTools::TcpServerStream::TcpServerStream(), GpCoreTools::UdpServerStream::UdpServerStream(), GpCoreTools::UnixClientStream::UnixClientStream(), and GpCoreTools::UnixServerStream::UnixServerStream().
{_fileDescriptor=fd;}
void GpCoreTools::Stream::setParent | ( | Stream * | parent | ) | [inline] |
Referenced by GpCoreTools::UnixServerStream::event(), and GpCoreTools::TcpServerStream::event().
{_parent=parent;}