41 virtual void Print(std::ostream& os)
const;
61#define gdcmEventMacro( classname , super ) \
63 class classname : public super { \
65 typedef classname Self; \
66 typedef super Superclass; \
68 virtual ~classname() override = default; \
69 virtual const char * GetEventName() const override { return #classname; } \
70 virtual bool CheckEvent(const ::gdcm::Event* e) const override \
71 { return dynamic_cast<const Self*>(e) ? true : false; } \
72 virtual ::gdcm::Event* MakeObject() const override \
73 { return new Self; } \
74 classname(const Self&s) : super(s){} \
76 void operator=(const Self&); \
Definition gdcmEvent.h:88
Definition gdcmEvent.h:83
Definition gdcmEvent.h:85
superclass for callback/observer methods
Definition gdcmEvent.h:27
virtual const char * GetEventName() const =0
void operator=(const Event &)=delete
virtual void Print(std::ostream &os) const
virtual bool CheckEvent(const Event *) const =0
virtual Event * MakeObject() const =0
Definition gdcmEvent.h:87
Definition gdcmEvent.h:90
Definition gdcmEvent.h:91
Definition gdcmEvent.h:89
Definition gdcmEvent.h:82
Definition gdcmEvent.h:84
Definition gdcmEvent.h:93
#define gdcmEventMacro(classname, super)
Definition gdcmEvent.h:61
#define GDCM_EXPORT
Definition gdcmWin32.h:34
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88