GDCM  2.4.5
gdcmFileNameEvent.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 GDCMFILENAMEEVENT_H
15 #define GDCMFILENAMEEVENT_H
16 
17 #include "gdcmEvent.h"
18 #include "gdcmTag.h"
19 
20 namespace gdcm
21 {
22 
29 class FileNameEvent : public AnyEvent
30 {
31 public:
34  FileNameEvent(const char *s = ""):m_FileName(s) {}
35  virtual ~FileNameEvent() {}
36  virtual const char * GetEventName() const { return "FileNameEvent"; }
37  virtual bool CheckEvent(const ::gdcm::Event* e) const
38  { return dynamic_cast<const Self*>(e) ? true : false; }
39  virtual ::gdcm::Event* MakeObject() const
40  { return new Self; }
41  FileNameEvent(const Self&s) : AnyEvent(s){};
42 
43  void SetFileName(const char *f) { m_FileName = f; }
44  const char *GetFileName() const { return m_FileName.c_str(); }
45 private:
46  void operator=(const Self&);
47  std::string m_FileName;
48 };
49 
50 
51 } // end namespace gdcm
52 
53 #endif //GDCMFILENAMEEVENT_H
FileNameEvent(const char *s="")
Definition: gdcmFileNameEvent.h:34
virtual const char * GetEventName() const
Definition: gdcmFileNameEvent.h:36
virtual ::gdcm::Event * MakeObject() const
Definition: gdcmFileNameEvent.h:39
void SetFileName(const char *f)
Definition: gdcmFileNameEvent.h:43
const char * GetFileName() const
Definition: gdcmFileNameEvent.h:44
Definition: gdcmEvent.h:85
virtual bool CheckEvent(const ::gdcm::Event *e) const
Definition: gdcmFileNameEvent.h:37
FileNameEvent Self
Definition: gdcmFileNameEvent.h:32
FileNameEvent Special type of event triggered during processing of FileSet.
Definition: gdcmFileNameEvent.h:29
virtual ~FileNameEvent()
Definition: gdcmFileNameEvent.h:35
FileNameEvent(const Self &s)
Definition: gdcmFileNameEvent.h:41
Definition: gdcmASN1.h:20
AnyEvent Superclass
Definition: gdcmFileNameEvent.h:33

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