#include <quartz.h>
Public Methods | |
QuartzClass ( Buffer*, int reqPackType, int freq = 15 ) | |
constructor for the quartzclass. More... | |
void | setFrequency ( int freq ) |
Changes the frequency the quartz sends request-packages. More... | |
int | getFrequency ( void ) |
gets the current frequency setting used by the QuartzThread itself to know with which frequency it shall work. More... | |
int | getRequestPacket ( void ) |
gets the current type of request packet used by the QuartzThread itself to know with which packages it shall send. More... | |
Buffer* | getBuf ( void ) |
gets the buffer used by the QuartzThread itself to know with into which buffer it shall write into. More... | |
Private Attributes | |
Buffer* | qbuf |
the pointer to the buffer the quartz shall write into. More... | |
int | requestPacket |
the type of package. More... | |
int | frequency |
the frequency (in requests per second). More... |
Definition at line 24 of file quartz.h.
00025 { 00026 00027 public: 00028 00030 00035 QuartzClass ( Buffer*, int reqPackType, int freq = 15 ); 00036 00038 00042 void setFrequency ( int freq ); 00043 00044 00046 00051 int QuartzClass::getFrequency ( void ); 00052 00054 00059 int QuartzClass::getRequestPacket ( void ); 00060 00062 00067 Buffer* QuartzClass::getBuf ( void ); 00068 00069 private: 00070 00071 Buffer* qbuf; 00072 int requestPacket; 00073 int frequency; 00074 00075 }
|
constructor for the quartzclass.
Buffer | The Buffer the quartz shall send the requests in |
reqPackType | The type of request that shall be sent |
freq | The frequency the quartz shall send the requests |
Definition at line 25 of file quartz.cpp.
00026 { 00027 qbuf = bufferIn; 00028 requestPacket = reqPackType; 00029 frequency = freq; 00030 00031 #ifdef DEBUG 00032 fprintf(stderr,"[QUARTZCLASS (%d): %d %d %d\n",this,qbuf,requestPacket,frequency); 00033 #endif 00034 }
|
gets the buffer used by the QuartzThread itself to know with into which buffer it shall write into.
Definition at line 51 of file quartz.cpp.
00052 { 00053 return qbuf; 00054 }
|
gets the current frequency setting used by the QuartzThread itself to know with which frequency it shall work.
Definition at line 41 of file quartz.cpp.
00042 { 00043 return frequency; 00044 }
|
gets the current type of request packet used by the QuartzThread itself to know with which packages it shall send.
Definition at line 46 of file quartz.cpp.
00047 { 00048 return requestPacket; 00049 }
|
Changes the frequency the quartz sends request-packages.
freq | The new frequency |
Definition at line 36 of file quartz.cpp.
00037 { 00038 frequency = freq; 00039 }
|
|
|