GDCM 2.2.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

gdcmDataSetEvent.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 GDCMDATASETEVENT_H
15 #define GDCMDATASETEVENT_H
16
17 #include "gdcmEvent.h"
18 #include "gdcmDataSet.h"
19
20 namespace gdcm
21 {
22
29 class DataSetEvent : public AnyEvent
30 {
31 public:
32 typedef DataSetEvent Self;
33 typedef AnyEvent Superclass;
34 DataSetEvent(DataSet const *ds = NULL):m_DataSet(ds) {}
35 virtual ~DataSetEvent() {}
36 virtual const char * GetEventName() const { return "DataSetEvent"; }
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 DataSetEvent(const Self&s) : AnyEvent(s){};
42
43 DataSet const & GetDataSet() const { return *m_DataSet; }
44 private:
45 void operator=(const Self&);
46 const DataSet *m_DataSet;
47 };
48
49
50 } // end namespace gdcm
51
52 #endif //GDCMANONYMIZEEVENT_H