GDCM  2.2.6
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 
20 namespace gdcm
21 {
22 
29 class AnonymizeEvent : public AnyEvent
30 {
31 public:
34  AnonymizeEvent(Tag const &tag = 0):m_Tag(tag) {}
35  virtual ~AnonymizeEvent() {}
36  virtual const char * GetEventName() const { return "AnonymizeEvent"; }
37  virtual bool CheckEvent(const ::gdcm::Event* e) const
38  { return (dynamic_cast<const Self*>(e) == NULL ? false : true) ; }
39  virtual ::gdcm::Event* MakeObject() const
40  { return new Self; }
41  AnonymizeEvent(const Self&s) : AnyEvent(s){};
42 
43  void SetTag(const Tag& t ) { m_Tag = t; }
44  Tag const & GetTag() const { return m_Tag; }
45 private:
46  void operator=(const Self&);
47  Tag m_Tag;
48 };
49 
50 
51 } // end namespace gdcm
52 
53 #endif //GDCMANONYMIZEEVENT_H
AnyEvent Superclass
Definition: gdcmAnonymizeEvent.h:33
virtual ~AnonymizeEvent()
Definition: gdcmAnonymizeEvent.h:35
virtual bool CheckEvent(const ::gdcm::Event *e) const
Definition: gdcmAnonymizeEvent.h:37
void SetTag(const Tag &t)
Definition: gdcmAnonymizeEvent.h:43
AnonymizeEvent Self
Definition: gdcmAnonymizeEvent.h:32
Definition: gdcmEvent.h:85
Tag const & GetTag() const
Definition: gdcmAnonymizeEvent.h:44
AnonymizeEvent(Tag const &tag=0)
Definition: gdcmAnonymizeEvent.h:34
AnonymizeEvent(const Self &s)
Definition: gdcmAnonymizeEvent.h:41
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38
virtual const char * GetEventName() const
Definition: gdcmAnonymizeEvent.h:36
virtual ::gdcm::Event * MakeObject() const
Definition: gdcmAnonymizeEvent.h:39
AnonymizeEvent Special type of event triggered during the Anonymization process.
Definition: gdcmAnonymizeEvent.h:29

Generated on Sat Dec 21 2013 05:56:16 for GDCM by doxygen 1.8.5
SourceForge.net Logo