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