All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Protected Member Functions
GpCoreTools::Stream Class Reference

Brief description of class still missing. More...

#include <Stream.h>

Inheritance diagram for GpCoreTools::Stream:
GpCoreTools::EventStream GpCoreTools::Serial GpCoreTools::TcpClientStream GpCoreTools::TcpServerStream GpCoreTools::UdpServerStream GpCoreTools::UnixClientStream GpCoreTools::UnixServerStream PeerTracker

List of all members.

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)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References TRACE.

{
  TRACE;
  _fileDescriptor=-1;
  _parent=0;
}

Description of destructor still missing

References childDeleted(), close(), and TRACE.

{
  TRACE;
  close();
  if(_parent) {
    _parent->childDeleted(this);
  }
}

Member Function Documentation

virtual void GpCoreTools::Stream::childDeleted ( Stream ) [inline, protected, virtual]

Reimplemented in GpCoreTools::TcpServerStream, and GpCoreTools::UnixServerStream.

Referenced by ~Stream().

{}
virtual void GpCoreTools::Stream::event ( short  type) [pure virtual]
virtual short GpCoreTools::Stream::eventTypes ( ) [pure virtual]
int GpCoreTools::Stream::fileDescriptor ( ) const [inline]
bool GpCoreTools::Stream::isActive ( ) const [inline]

Referenced by GpCoreTools::Serial::isConnected().

{return _fileDescriptor>0;}
void GpCoreTools::Stream::setFileDescriptor ( int  fd) [inline, protected]
void GpCoreTools::Stream::setParent ( Stream parent) [inline]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines