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