nidas v1.2.3
Public Member Functions | Public Attributes | List of all members
TestClient Class Referenceabstract
Inheritance diagram for TestClient:
Inheritance graph
[legend]

Public Member Functions

 TestClient ()
 
bool receive (const Sample *s) throw ()
 Method called to pass a sample to this client.
 
virtual void flush ()=0
 Ask that this SampleClient send out any buffered Samples that it may be holding.
 

Public Attributes

int nsamples
 

Constructor & Destructor Documentation

◆ TestClient()

TestClient::TestClient ( )
inline

Member Function Documentation

◆ flush()

virtual void nidas::core::SampleClient::flush ( )
pure virtualinherited

◆ receive()

bool TestClient::receive ( const Sample * s)
throw ( )
virtual

Method called to pass a sample to this client.

This method is typically called by a SampleSource for each of its SampleClients when it has a sample ready. Returns true: success false: sample rejected. This is meant to signal a warning-type situation - like a socket not being available temporarily. True errors will be thrown as an IOException.

Exceptions

)

Implements nidas::core::SampleClient.

References TestSource::nsamples.

Member Data Documentation

◆ nsamples

int TestClient::nsamples

The documentation for this class was generated from the following file: