30 #include <boost/shared_ptr.hpp>
32 #include "../common/WConditionSet.h"
33 #include "../common/WSharedObject.h"
34 #include "../common/WSharedSequenceContainer.h"
36 #include "WPersonalInformation.h"
117 void addDataSet( boost::shared_ptr< WDataSet > dataset );
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.
WPersonalInformation m_personalInfo
Information on the person represented by this WSubject.
DatasetSharedContainerType m_datasets
A container for all WDataSet.
The tests for our subject class.
Base class for all data set types.
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...
Container for all WDataSets belonging to one subject or patient.
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.
DatasetContainerType::const_iterator DatasetConstIterator
The dataset const iterator.
DatasetSharedContainerType::ReadTicket getDatasets() const
Returns read-access to the dataset list.
boost::shared_ptr< WConditionSet > m_listChangeCondition
This condition set fires whenever the list of datasets changes.
WSharedSequenceContainer< DatasetContainerType > DatasetSharedContainerType
The alias for a shared container.
WSubject()
Constructs a dummy subject.
std::vector< boost::shared_ptr< WDataSet > > DatasetContainerType
For shortening: a type defining a shared vector of WSubject pointers.
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.