Public Member Functions | Protected Member Functions
MasterBuffer Class Reference

Brief description of class still missing. More...

#include <MasterBuffer.h>

Inheritance diagram for MasterBuffer:
GpCoreTools::DynamicBuffer

List of all members.

Public Member Functions

 MasterBuffer (int fd, std::list< GpsStation * > *stations)
 MasterBuffer (int fd, GpsStation *station)

Protected Member Functions

virtual int bytesAvailable (char *buffer, int bytesCount)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

MasterBuffer::MasterBuffer ( int  fd,
std::list< GpsStation * > *  stations 
)

Description of constructor still missing

References TRACE.

    : DynamicBuffer(fd)
{
  TRACE;
  _station=0;
  _stations=stations;
}
MasterBuffer::MasterBuffer ( int  fd,
GpsStation station 
)

References TRACE.

    : DynamicBuffer(fd)
{
  TRACE;
  _station=station;
  _stations=0;
}

Member Function Documentation

int MasterBuffer::bytesAvailable ( char *  buffer,
int  bytesCount 
) [protected, virtual]

Implements GpCoreTools::DynamicBuffer.

References TRACE.

{
  TRACE;
  /*if(byteCount>0) {
    switch(buffer[0]) {
    case 'S':
      _device->stack();
      break;
    case 'T':
      _device->track();
      break;
    case 'P':
      _device->powerUp();
      break;
    case 'p':
      _device->powerDown();
      break;
    case 'B':
      _device->startBroadcast();
      break;
    case 'b':
      _device->stopBroadcast();
      break;
    case 'i':
      info();
      break;
    default:
      break;
    }
    int i;
    // Skip spaces, CR, LF (produced by telnet)
    for(i=1; i<byteCount && isspace(buffer[i]); i++) {}
    return i;
  } else {
   return 0;
  }*/
}

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