gdcmDataSetEvent.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMDATASETEVENT_H
#define GDCMDATASETEVENT_H
#include "gdcmEvent.h"
#include "gdcmDataSet.h"
namespace gdcm
{
class DataSetEvent : public AnyEvent
{
public:
typedef DataSetEvent Self;
typedef AnyEvent Superclass;
DataSetEvent(DataSet const *ds = nullptr):m_DataSet(ds) {}
~DataSetEvent() override = default;
void operator=(const Self&) = delete;
const DataSet *m_DataSet;
const char * GetEventName() const override { return "DataSetEvent"; }
bool CheckEvent(const ::gdcm::Event* e) const override
{ return (dynamic_cast<const Self*>(e) == nullptr ? false : true) ; }
::gdcm::Event* MakeObject() const override
{ return new Self; }
DataSetEvent(const Self&s) : AnyEvent(s){}
DataSet const & GetDataSet() const { return *m_DataSet; }
};
} // end namespace gdcm
#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