27#ifndef NIDAS_CORE_SAMPLECLIENTLIST_H
28#define NIDAS_CORE_SAMPLECLIENTLIST_H
35namespace nidas {
namespace core {
78 virtual bool empty()
const;
98 std::list<SampleClient*>::const_iterator
begin() throw() {
return _clients.begin(); }
101 std::list<SampleClient*>::const_iterator
end() throw() {
return _clients.end(); }
A list of SampleClients.
Definition SampleClientList.h:41
virtual bool empty() const
Are there any clients?
Definition SampleClientList.cc:72
virtual void remove(SampleClient *)
Remove a SampleClient from this SampleSource.
Definition SampleClientList.cc:63
nidas::util::Mutex _clistLock
mutex to prevent simultaneous access to clients list
Definition SampleClientList.h:108
virtual void removeAll()
Big cleanup.
Definition SampleClientList.cc:80
SampleClientList & operator=(const SampleClientList &cl)
Public assignment operator.
Definition SampleClientList.cc:41
std::list< SampleClient * >::const_iterator begin()
get a const_iterator pointing to first element.
Definition SampleClientList.h:98
SampleClientList()
Definition SampleClientList.h:44
void unlock() const
Unlock this list.
Definition SampleClientList.h:95
virtual void add(SampleClient *)
Add a SampleClient to this list.
Definition SampleClientList.cc:53
void lock() const
Lock this list.
Definition SampleClientList.h:90
virtual ~SampleClientList()
Definition SampleClientList.h:52
std::list< SampleClient * >::const_iterator end()
get a const_iterator pointing to one-past-last element.
Definition SampleClientList.h:101
std::list< SampleClient * > _clients
My current clients.
Definition SampleClientList.h:113
Pure virtual interface of a client of Samples.
Definition SampleClient.h:38
A C++ wrapper for a POSIX mutex.
Definition ThreadSupport.h:161
void lock()
Lock the Mutex.
Definition ThreadSupport.h:216
void unlock()
Unlock the Mutex.
Definition ThreadSupport.h:230
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31