Brief description of class still missing. More...
#include <MasterBuffer.h>
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) |
Brief description of class still missing.
Full description of class still missing
| 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; }
| 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;
}*/
}