#include <rcvbuffer.hpp>
Öffentliche Methoden | |
| CRcvBuffer () | |
| std::cout | |
| CRcvBuffer (const CRcvBuffer &OldObject) | |
| CRcvBuffer & | operator= (const CRcvBuffer &NewObject) |
| needed to avoid the bitwise copying of handles | |
| DWORD | GetTimeOut (void) const |
| get/ set timeouts | |
| void | SetTimeOut (const DWORD dwNewTimeOut) |
| RECEIVED_TYPE | GetCommand (void) const |
| get / set received command | |
| void | SetCommand (RECEIVED_TYPE NewCommand) |
| ADDRESS_TYPE | GetAddress (void) const |
| get/ set buffer | |
| unsigned int | GetLength (void) const |
| std::vector< unsigned char > | GetData (void) const |
| void | SetAddress (const ADDRESS_TYPE nAddress) |
| void | SetLength (const unsigned int uiLength) |
| void | SetData (const std::vector< unsigned char > &aucData) |
| bool | BeginDataTransfer (void) const |
| (un)locking rcvbuffer | |
| bool | EndDataTransfer (void) const |
| bool | StoreData (const RECEIVED_TYPE Command, const ADDRESS_TYPE nAddress, const unsigned int uiLength, const std::vector< unsigned char > &aucData=std::vector< unsigned char >::vector()) |
| store the data into rcvbuffer | |
| bool | FetchData (RECEIVED_TYPE &Command, ADDRESS_TYPE &nAddress, unsigned int &uiLength, std::vector< unsigned char > &aucData) |
| CRcvBuffer () | |
| constructor creates mutex to protect internal buffer | |
| CRcvBuffer (const CRcvBuffer &OldObject) | |
| copyconstructor needed because we create a mutex during the constructor | |
| virtual | ~CRcvBuffer () |
| destructor frees mutex | |
| CRcvBuffer & | operator= (const CRcvBuffer &NewObject) |
| overwrite assignment operator needed because we create a mutex during the constructor | |
| DWORD | GetTimeOut (void) const |
| delivers current internal timeout value | |
| void | SetTimeOut (const DWORD dwNewTimeOut) |
| sets current internal timeout value | |
| RECEIVED_TYPE | GetCommand (void) const |
| delivers received command | |
| void | SetCommand (RECEIVED_TYPE NewCommand) |
| sets received command | |
| ADDRESS_TYPE | GetAddress (void) const |
| delivers received address | |
| unsigned int | GetLength (void) const |
| delivers received data length | |
| std::vector< unsigned char > | GetData (void) const |
| delivers received data | |
| void | SetAddress (const ADDRESS_TYPE nAddress) |
| sets received command | |
| void | SetLength (const unsigned int uiLength) |
| sets received data length | |
| void | SetData (const std::vector< unsigned char > &aucData) |
| sets received data | |
| bool | BeginDataTransfer (void) const |
| locking receive buffer | |
| bool | EndDataTransfer (void) const |
| unlock receive buffer | |
| bool | StoreData (const RECEIVED_TYPE Command, const ADDRESS_TYPE nAddress, const unsigned int uiLength, const std::vector< unsigned char > &aucData=std::vector< unsigned char >::vector()) |
| store the data into rcvbuffer | |
| bool | FetchData (RECEIVED_TYPE &Command, ADDRESS_TYPE &nAddress, unsigned int &uiLength, std::vector< unsigned char > &aucData) |
| delivers the received data | |
Private Attribute | |
| HANDLE | m_hDataLock |
| handle for mutex to protect receive buffer | |
| ADDRESS_TYPE | m_nAddress |
| received address | |
| unsigned int | m_uiLength |
| received length | |
| std::vector< unsigned char > | m_aucData |
| RECEIVED_TYPE | m_RcvCommand |
| received command ( see enum RECEIVED_TYPE for details ) | |
| DWORD | m_dwTimeOut |
| internal TimeOut | |
| std::vector< unsigned char > | m_aucData |
| received data | |
|
|
std::cout handles the data received form rcvthread
|
|
|
locking receive buffer
|
|
|
(un)locking rcvbuffer
|
|
|
unlock receive buffer
|
|
|
|
|
||||||||||||||||||||
|
delivers the received data
|
|
||||||||||||||||||||
|
|
|
|
delivers received address
|
|
|
get/ set buffer
|
|
|
delivers received command
|
|
|
get / set received command
|
|
|
delivers received data
|
|
|
|
|
|
delivers received data length
|
|
|
|
|
|
delivers current internal timeout value uses during receiving data from the receive thread
|
|
|
get/ set timeouts
|
|
|
needed to avoid the bitwise copying of handles Received data address. length data TimeOuts getting data from receive thread |
|
|
sets received command
|
|
|
|
|
|
sets received command
|
|
|
|
|
|
sets received data
|
|
|
|
|
|
sets received data length
|
|
|
|
|
|
sets current internal timeout value uses during receiving data from the receive thread
|
|
|
|
|
||||||||||||||||||||
|
store the data into rcvbuffer
|
|
||||||||||||||||||||
|
store the data into rcvbuffer
|
1.3.7