33 #include "../common/WConditionSet.h"
34 #include "../common/WSharedObject.h"
35 #include "../common/WSharedSequenceContainer.h"
36 #include "WPersonalInformation.h"
117 void addDataSet( std::shared_ptr< WDataSet > dataset );
Base class for all data set types.
std::shared_ptr< WSharedObjectTicketRead< T > > ReadTicket
Type for read tickets.
std::shared_ptr< WSharedObjectTicketWrite< T > > WriteTicket
Type for write tickets.
The tests for our subject class.
Container for all WDataSets belonging to one subject or patient.
DatasetContainerType::iterator DatasetIterator
The dataset iterator.
WSharedSequenceContainer< DatasetContainerType > DatasetSharedContainerType
The alias for a shared container.
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.
std::vector< std::shared_ptr< WDataSet > > DatasetContainerType
For shortening: a type defining a shared vector of WSubject pointers.
DatasetSharedContainerType m_datasets
A container for all WDataSet.
DatasetContainerType::const_iterator DatasetConstIterator
The dataset const iterator.
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.