GDCM  2.4.5
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;
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
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a r...
Definition: gdcmDataSet.h:55
virtual bool CheckEvent(const ::gdcm::Event *e) const
Definition: gdcmDataSetEvent.h:37
virtual ::gdcm::Event * MakeObject() const
Definition: gdcmDataSetEvent.h:39
Definition: gdcmEvent.h:85
virtual const char * GetEventName() const
Definition: gdcmDataSetEvent.h:36
DataSetEvent(DataSet const *ds=NULL)
Definition: gdcmDataSetEvent.h:34
DataSetEvent(const Self &s)
Definition: gdcmDataSetEvent.h:41
DataSetEvent Special type of event triggered during the DataSet store/move process.
Definition: gdcmDataSetEvent.h:29
virtual ~DataSetEvent()
Definition: gdcmDataSetEvent.h:35
DataSet const & GetDataSet() const
Definition: gdcmDataSetEvent.h:43
Definition: gdcmASN1.h:20
AnyEvent Superclass
Definition: gdcmDataSetEvent.h:33
DataSetEvent Self
Definition: gdcmDataSetEvent.h:32

Generated on Fri Sep 25 2015 17:58:22 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo