gdcmAnonymizeEvent.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 GDCMANONYMIZEEVENT_H
#define GDCMANONYMIZEEVENT_H
#include "gdcmEvent.h"
#include "gdcmTag.h"
namespace gdcm
{
class AnonymizeEvent : public AnyEvent
{
public:
typedef AnonymizeEvent Self;
typedef AnyEvent Superclass;
AnonymizeEvent(Tag const &tag = 0):m_Tag(tag) {}
~AnonymizeEvent() override = default;
AnonymizeEvent(const Self&s) : AnyEvent(s){}
void operator=(const Self&) = delete;
const char * GetEventName() const override { return "AnonymizeEvent"; }
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; }
void SetTag(const Tag& t ) { m_Tag = t; }
Tag const & GetTag() const { return m_Tag; }
private:
Tag m_Tag;
};
} // end namespace gdcm
#endif //GDCMANONYMIZEEVENT_H
gdcm::AnonymizeEvent::operator=
void operator=(const Self &)=delete
gdcm::AnonymizeEvent::AnonymizeEvent
AnonymizeEvent(Tag const &tag=0)
Definition gdcmAnonymizeEvent.h:34
gdcm::AnonymizeEvent::SetTag
void SetTag(const Tag &t)
Definition gdcmAnonymizeEvent.h:45
gdcm::AnonymizeEvent::CheckEvent
bool CheckEvent(const ::gdcm::Event *e) const override
Definition gdcmAnonymizeEvent.h:40
gdcm::AnonymizeEvent::MakeObject
::gdcm::Event * MakeObject() const override
Definition gdcmAnonymizeEvent.h:42
gdcm::AnonymizeEvent::~AnonymizeEvent
~AnonymizeEvent() override=default
gdcm::AnonymizeEvent::GetTag
Tag const & GetTag() const
Definition gdcmAnonymizeEvent.h:46
gdcm::AnonymizeEvent::Superclass
AnyEvent Superclass
Definition gdcmAnonymizeEvent.h:33
gdcm::AnonymizeEvent::GetEventName
const char * GetEventName() const override
Definition gdcmAnonymizeEvent.h:39
gdcm::AnonymizeEvent::Self
AnonymizeEvent Self
Definition gdcmAnonymizeEvent.h:32
gdcm::AnonymizeEvent::AnonymizeEvent
AnonymizeEvent(const Self &s)
Definition gdcmAnonymizeEvent.h:36
gdcm::AnyEvent
Definition gdcmEvent.h:83
gdcm::Event
superclass for callback/observer methods
Definition gdcmEvent.h:27
gdcm::Tag
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
gdcmEvent.h
gdcmTag.h
gdcm
Definition gdcmASN1.h:21