GDCM: gdcmDataSetEvent.h Source File

GDCM 3.2.10

gdcmDataSetEvent.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMDATASETEVENT_H
15#define GDCMDATASETEVENT_H
16
17#include "gdcmEvent.h"
18#include "gdcmDataSet.h"
19
20namespace gdcm
21{
22
27 class DataSetEvent : public AnyEvent
28{
29public:
30 typedef DataSetEvent Self;
31 typedef AnyEvent Superclass;
32 DataSetEvent(DataSet const *ds = nullptr):m_DataSet(ds) {}
33 ~DataSetEvent() override = default;
34 void operator=(const Self&) = delete;
35 const DataSet *m_DataSet;
36 const char * GetEventName() const override { return "DataSetEvent"; }
37 bool CheckEvent(const ::gdcm::Event* e) const override
38 { return (dynamic_cast<const Self*>(e) == nullptr ? false : true) ; }
39 ::gdcm::Event* MakeObject() const override
40 { return new Self; }
41 DataSetEvent(const Self&s) : AnyEvent(s){}
42
43 DataSet const & GetDataSet() const { return *m_DataSet; }
44};
45
46
47} // end namespace gdcm
48
49#endif //GDCMANONYMIZEEVENT_H
gdcm::AnyEvent
Definition gdcmEvent.h:83
gdcm::DataSetEvent::MakeObject
::gdcm::Event * MakeObject() const override
Definition gdcmDataSetEvent.h:39
gdcm::DataSetEvent::m_DataSet
const DataSet * m_DataSet
Definition gdcmDataSetEvent.h:35
gdcm::DataSetEvent::operator=
void operator=(const Self &)=delete
gdcm::DataSetEvent::Self
DataSetEvent Self
Definition gdcmDataSetEvent.h:30
gdcm::DataSetEvent::DataSetEvent
DataSetEvent(DataSet const *ds=nullptr)
Definition gdcmDataSetEvent.h:32
gdcm::DataSetEvent::CheckEvent
bool CheckEvent(const ::gdcm::Event *e) const override
Definition gdcmDataSetEvent.h:37
gdcm::DataSetEvent::GetDataSet
DataSet const & GetDataSet() const
Definition gdcmDataSetEvent.h:43
gdcm::DataSetEvent::DataSetEvent
DataSetEvent(const Self &s)
Definition gdcmDataSetEvent.h:41
gdcm::DataSetEvent::Superclass
AnyEvent Superclass
Definition gdcmDataSetEvent.h:31
gdcm::DataSetEvent::~DataSetEvent
~DataSetEvent() override=default
gdcm::DataSetEvent::GetEventName
const char * GetEventName() const override
Definition gdcmDataSetEvent.h:36
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements).
Definition gdcmDataSet.h:56
gdcm::Event
superclass for callback/observer methods
Definition gdcmEvent.h:27
gdcmDataSet.h
gdcmEvent.h
gdcm
Definition gdcmASN1.h:21