GDCM: gdcmAnonymizeEvent.h Source File

GDCM 3.2.7

gdcmAnonymizeEvent.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 GDCMANONYMIZEEVENT_H
15#define GDCMANONYMIZEEVENT_H
16
17#include "gdcmEvent.h"
18#include "gdcmTag.h"
19
20namespace gdcm
21{
22
29 class AnonymizeEvent : public AnyEvent
30{
31public:
32 typedef AnonymizeEvent Self;
33 typedef AnyEvent Superclass;
34 AnonymizeEvent(Tag const &tag = 0):m_Tag(tag) {}
35 ~AnonymizeEvent() override = default;
36 AnonymizeEvent(const Self&s) : AnyEvent(s){}
37 void operator=(const Self&) = delete;
38
39 const char * GetEventName() const override { return "AnonymizeEvent"; }
40 bool CheckEvent(const ::gdcm::Event* e) const override
41 { return (dynamic_cast<const Self*>(e) == nullptr ? false : true) ; }
42 ::gdcm::Event* MakeObject() const override
43 { return new Self; }
44
45 void SetTag(const Tag& t ) { m_Tag = t; }
46 Tag const & GetTag() const { return m_Tag; }
47private:
48 Tag m_Tag;
49};
50
51
52} // end namespace gdcm
53
54#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