29 #include "../common/WLogger.h"
32 #include "exceptions/WDHNoSuchDataSet.h"
48 m_personalInfo( personInfo )
80 DatasetIterator fIt = std::find( l->get().begin(), l->get().end(), dataset );
81 l->get().erase( fIt );
DatasetSharedContainerType::WriteTicket getDatasetsForWriting() const
Returns write-access to the dataset list.
boost::shared_ptr< WSharedObjectTicketWrite< DatasetContainerType > > WriteTicket
Type for write tickets.
WPersonalInformation getPersonalInformation() const
Gives the personal information of a subject.
void push_back(const typename S::value_type &x)
Adds a new element at the end of the container.
WPersonalInformation m_personalInfo
Information on the person represented by this WSubject.
DatasetSharedContainerType m_datasets
A container for all WDataSet.
std::string getName() const
Returns the name of the subject.
boost::shared_ptr< WCondition > getChangeCondition() const
This condition fires whenever the list of datasets changes, or one dataset got marked as "dirty" (thr...
DatasetContainerType::iterator DatasetIterator
The dataset iterator.
virtual ~WSubject()
Destructs the subject.
void addDataSet(boost::shared_ptr< WDataSet > dataset)
Insert a new dataset referenced by a pointer.
ReadTicket getReadTicket() const
Returns a ticket to get read access to the contained data.
DatasetSharedContainerType::ReadTicket getDatasets() const
Returns read-access to the dataset list.
WriteTicket getWriteTicket(bool suppressNotify=false) const
Returns a ticket to get write access to the contained data.
Class allowing multiple conditions to be used for one waiting cycle.
boost::shared_ptr< WConditionSet > m_listChangeCondition
This condition set fires whenever the list of datasets changes.
WSubject()
Constructs a dummy subject.
void removeDataSet(boost::shared_ptr< WDataSet > dataset)
Removes the specified dataset if it is in the set.
boost::shared_ptr< WConditionSet > m_changeCondition
This condition set fires whenever one dataset gets dirty or the list of datasets changes.
boost::shared_ptr< WCondition > getListChangeCondition() const
This condition fires whenever the list of datasets changes.
boost::shared_ptr< WSharedObjectTicketRead< DatasetContainerType > > ReadTicket
Type for read tickets.
void clear()
Remove all datasets from the subjects.