35 virtual Event* MakeObject()
const = 0;
40 virtual void Print(std::ostream& os)
const;
43 virtual const char * GetEventName(
void)
const = 0;
46 virtual bool CheckEvent(
const Event*)
const = 0;
50 void operator=(
const Event&);
63 #define gdcmEventMacro( classname , super ) \
65 class classname : public super { \
67 typedef classname Self; \
68 typedef super Superclass; \
70 virtual ~classname() {} \
71 virtual const char * GetEventName() const { return #classname; } \
72 virtual bool CheckEvent(const ::gdcm::Event* e) const \
73 { return dynamic_cast<const Self*>(e) ? true : false; } \
74 virtual ::gdcm::Event* MakeObject() const \
75 { return new Self; } \
76 classname(const Self&s) : super(s){}; \
78 void operator=(const Self&); \
superclass for callback/observer methods
Definition: gdcmEvent.h:26
#define gdcmEventMacro(classname, super)
Definition: gdcmEvent.h:63
virtual void Print(std::ostream &os) const
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
Definition: gdcmEvent.h:86
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition: gdcmDirectory.h:92
Definition: gdcmEvent.h:91
Definition: gdcmEvent.h:85
Definition: gdcmEvent.h:87
Definition: gdcmEvent.h:92
Definition: gdcmEvent.h:93
Definition: gdcmEvent.h:89
Definition: gdcmEvent.h:95
Definition: gdcmEvent.h:84
Definition: gdcmEvent.h:90