GDCM 3.0.24
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
27class DataSetEvent : public AnyEvent
28{
29public:
32 DataSetEvent(DataSet const *ds = nullptr):m_DataSet(ds) {}
33 ~DataSetEvent() override = default;
34 void operator=(const Self&) = delete;
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
Definition gdcmEvent.h:83
DataSetEvent.
Definition gdcmDataSetEvent.h:28
::gdcm::Event * MakeObject() const override
Definition gdcmDataSetEvent.h:39
const DataSet * m_DataSet
Definition gdcmDataSetEvent.h:35
void operator=(const Self &)=delete
DataSetEvent Self
Definition gdcmDataSetEvent.h:30
DataSetEvent(DataSet const *ds=nullptr)
Definition gdcmDataSetEvent.h:32
bool CheckEvent(const ::gdcm::Event *e) const override
Definition gdcmDataSetEvent.h:37
DataSet const & GetDataSet() const
Definition gdcmDataSetEvent.h:43
DataSetEvent(const Self &s)
Definition gdcmDataSetEvent.h:41
AnyEvent Superclass
Definition gdcmDataSetEvent.h:31
~DataSetEvent() override=default
const char * GetEventName() const override
Definition gdcmDataSetEvent.h:36
Class to represent a Data Set (which contains Data Elements)
Definition gdcmDataSet.h:56
superclass for callback/observer methods
Definition gdcmEvent.h:27
Definition gdcmASN1.h:21