![]() |
Barst
2.0
A server that controls lab hardware.
|
#include <base classses.h>
Public Member Functions | |
int | Run (int argc, TCHAR *argv[]) |
void | ProcessData (const void *pHead, DWORD dwSize, __int64 llId) |
void | Result (void *pHead, bool bPass) |
DWORD | GetInfo (void *pHead, DWORD dwSize) |
![]() | |
CDevice (const TCHAR szName[]) | |
Additional Inherited Members | |
![]() | |
const std::tstring | m_csName |
![]() | |
CComm * | m_pcComm |
CLogBuffer * | m_pcLogBuffer |
CMemPool * | m_pcMemPool |
bool | m_bError |
This is the main program manager. When the program starts this is created once and subsequent calls to managers go through this manager. Every call to create a new manager (e.g. FTDI, RTV...) or to create a new channel in a manager go through this manager. This manager controlls access to the pipe that is created when the the program is launched with the name passed into the exe. The communicator held by this manager has only one thread ever and only one user can connect to the manager at any time. This ensures that multiple users cannot create or delete managers/channels simultaneuosly. So if someone is connected to the manager already, another user has to wait until this user is done. See the API for how data is passed between managers.
Definition at line 119 of file base classses.h.
|
inlinevirtual |
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 CDevice.
Definition at line 130 of file base classses.h.
|
virtual |
|
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 CDevice.
Definition at line 129 of file base classses.h.