Barst  2.0
A server that controls lab hardware.
Public Member Functions | List of all members
CManagerRTV Class Reference
Inheritance diagram for CManagerRTV:
CManager CDevice

Public Member Functions

 CManagerRTV (CComm *pcComm, const TCHAR szPipe[], int nChan, int &nError)
 
void ProcessData (const void *pHead, DWORD dwSize, __int64 llId)
 
void Result (void *pHead, bool bPass)
 
virtual DWORD GetInfo (void *pHead, DWORD dwSize)
 
void NextFrame (unsigned char *aucData, unsigned short usChan)
 
- Public Member Functions inherited from CManager
 CManager (const TCHAR szName[], const std::tstring csPipeName, int nChan)
 
- Public Member Functions inherited from CDevice
 CDevice (const TCHAR szName[])
 

Additional Inherited Members

- Public Attributes inherited from CManager
const std::tstring m_csPipeName
 
const int m_nChan
 
- Public Attributes inherited from CDevice
const std::tstring m_csName
 
- Protected Attributes inherited from CManager
HINSTANCE m_hLib
 
- Protected Attributes inherited from CDevice
CCommm_pcComm
 
CLogBufferm_pcLogBuffer
 
CMemPoolm_pcMemPool
 
bool m_bError
 

Detailed Description

Definition at line 16 of file rtv device.h.

Member Function Documentation

◆ GetInfo()

DWORD CManagerRTV::GetInfo ( void *  pHead,
DWORD  dwSize 
)
virtual

This function copies chennel specific info into pHead which could then be sent to the user in response to a query request. If phead is NULL, the function returns the required size of pHead. If non NULL, dwSize if the sise of pHead and the function returns the total size of the data copied into pHead. This funcion followes the rules where every sub-struct is proceeded by an SBase. Typically, it returns an SBaseOut sturct which holds the name of the device followed by channels specific structs.

Implements CManager.

Definition at line 103 of file rtv device.cpp.

◆ NextFrame()

void CManagerRTV::NextFrame ( unsigned char *  aucData,
unsigned short  usChan 
)

This function is called by the RTV dll when a new frame is availible for a channel.

Definition at line 328 of file rtv device.cpp.

◆ ProcessData()

void CManagerRTV::ProcessData ( const void *  pHead,
DWORD  dwSize,
__int64  llId 
)
virtual

Comm calls this function when a user sent data to the device.

Implements CManager.

Definition at line 135 of file rtv device.cpp.

◆ Result()

void CManagerRTV::Result ( void *  pHead,
bool  bPass 
)
inlinevirtual

Comm calls this function when it finished writing data to user sent by this device. phead is the pHead parameter in the SData struct that was sent with SendData() bPass is true if successfull and false otherwise.

Implements CManager.

Definition at line 22 of file rtv device.h.