PSShmemInput::ShmemMonitorClient Class Reference
[PSShmemInput]

Implementation of XtcMonitorClient which pushes data into a queue. More...

#include <ShmemMonitorClient.h>

List of all members.

Public Member Functions

 ShmemMonitorClient (const std::string &tag, int index, XtcInput::DgramQueue &queue, Pds::TransitionId::Value stopTr)
void operator() ()
virtual int processDgram (Pds::Dgram *dg)


Detailed Description

Implementation of XtcMonitorClient which pushes data into a queue.

Instance of this class is supposed to run in a separate thread so its interface is suitable for use with boost::thread class, for example. It is also possible to use this class without starting new thread by calling operator()() like in this example:

    ShmemMonitorClient client(...);
    // This will run until stop transition is met
    client();

Version:
Id
ShmemMonitorClient.h 6177 2013-04-29 21:55:17Z salnikov@SLAC.STANFORD.EDU
Author:
Andy Salnikov

Definition at line 64 of file ShmemMonitorClient.h.


Constructor & Destructor Documentation

PSShmemInput::ShmemMonitorClient::ShmemMonitorClient ( const std::string &  tag,
int  index,
XtcInput::DgramQueue &  queue,
Pds::TransitionId::Value  stopTr 
)

Definition at line 50 of file ShmemMonitorClient.cpp.


Member Function Documentation

void PSShmemInput::ShmemMonitorClient::operator() (  ) 

Definition at line 62 of file ShmemMonitorClient.cpp.

int PSShmemInput::ShmemMonitorClient::processDgram ( Pds::Dgram *  dg  )  [virtual]

Definition at line 69 of file ShmemMonitorClient.cpp.

References logger, MsgLog, and mpids_test::size.


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7