gdcmSimpleSubjectWatcher.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMSIMPLESUBJECTWATCHER_H
#define GDCMSIMPLESUBJECTWATCHER_H
#include "gdcmSubject.h"
#include "gdcmCommand.h"
#include "gdcmSmartPointer.h"
#include "gdcmAnonymizeEvent.h"
#include "gdcmDataEvent.h"
namespace gdcm
{
//-----------------------------------------------------------------------------
class Event;
class GDCM_EXPORT SimpleSubjectWatcher
{
public:
SimpleSubjectWatcher(Subject * s, const char *comment = "");
virtual ~SimpleSubjectWatcher();
SimpleSubjectWatcher(const SimpleSubjectWatcher&) = delete;
void operator=(const SimpleSubjectWatcher&) = delete;
protected:
virtual void StartFilter();
virtual void EndFilter();
virtual void ShowProgress(Subject *caller, const Event &evt);
virtual void ShowFileName(Subject *caller, const Event &evt);
virtual void ShowIteration();
virtual void ShowAnonymization(Subject *caller, const Event &evt);
virtual void ShowDataSet(Subject *caller, const Event &evt);
virtual void ShowData(Subject *caller, const Event &evt);
virtual void ShowAbort();
protected:
// Custom API used for internal Testing do not use !
void TestAbortOn();
void TestAbortOff();
private:
SmartPointer<Subject> m_Subject;
std::string m_Comment;
typedef SimpleMemberCommand<SimpleSubjectWatcher> SimpleCommandType;
typedef MemberCommand<SimpleSubjectWatcher> CommandType;
SmartPointer<SimpleCommandType> m_StartFilterCommand;
SmartPointer<SimpleCommandType> m_EndFilterCommand;
SmartPointer<CommandType> m_ProgressFilterCommand;
SmartPointer<CommandType> m_FileNameFilterCommand;
SmartPointer<SimpleCommandType> m_IterationFilterCommand;
SmartPointer<SimpleCommandType> m_AbortFilterCommand;
SmartPointer<CommandType> m_AnonymizeFilterCommand;
SmartPointer<CommandType> m_DataFilterCommand;
SmartPointer<CommandType> m_DataSetFilterCommand;
unsigned long m_StartTag;
unsigned long m_EndTag;
unsigned long m_ProgressTag;
unsigned long m_FileNameTag;
unsigned long m_IterationTag;
unsigned long m_AbortTag;
unsigned long m_AnonymizeTag;
unsigned long m_DataTag;
unsigned long m_DataSetTag;
bool m_TestAbort;
};
} // end namespace gdcm
//-----------------------------------------------------------------------------
#endif //GDCMSIMPLESUBJECTWATCHER_H
gdcm::Event
superclass for callback/observer methods
Definition gdcmEvent.h:27
gdcm::MemberCommand
Command subclass that calls a pointer to a member function.
Definition gdcmCommand.h:56
gdcm::SimpleMemberCommand
Command subclass that calls a pointer to a member function.
Definition gdcmCommand.h:131
gdcm::SimpleSubjectWatcher::SimpleSubjectWatcher
SimpleSubjectWatcher(Subject *s, const char *comment="")
gdcm::SimpleSubjectWatcher::ShowAbort
virtual void ShowAbort()
gdcm::SimpleSubjectWatcher::StartFilter
virtual void StartFilter()
gdcm::SimpleSubjectWatcher::ShowFileName
virtual void ShowFileName(Subject *caller, const Event &evt)
gdcm::SimpleSubjectWatcher::TestAbortOn
void TestAbortOn()
gdcm::SimpleSubjectWatcher::EndFilter
virtual void EndFilter()
gdcm::SimpleSubjectWatcher::ShowDataSet
virtual void ShowDataSet(Subject *caller, const Event &evt)
gdcm::SimpleSubjectWatcher::TestAbortOff
void TestAbortOff()
gdcm::SimpleSubjectWatcher::operator=
void operator=(const SimpleSubjectWatcher &)=delete
gdcm::SimpleSubjectWatcher::SimpleSubjectWatcher
SimpleSubjectWatcher(const SimpleSubjectWatcher &)=delete
gdcm::SimpleSubjectWatcher::ShowData
virtual void ShowData(Subject *caller, const Event &evt)
gdcm::SimpleSubjectWatcher::~SimpleSubjectWatcher
virtual ~SimpleSubjectWatcher()
gdcm::SimpleSubjectWatcher::ShowIteration
virtual void ShowIteration()
gdcm::SimpleSubjectWatcher::ShowProgress
virtual void ShowProgress(Subject *caller, const Event &evt)
gdcm::SimpleSubjectWatcher::ShowAnonymization
virtual void ShowAnonymization(Subject *caller, const Event &evt)
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcm::Subject
Subject.
Definition gdcmSubject.h:29
gdcmAnonymizeEvent.h
gdcmCommand.h
gdcmDataEvent.h
gdcmSmartPointer.h
gdcmSubject.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21