GDCM  2.2.0
gdcmSubject.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 GDCMSUBJECT_H
15 #define GDCMSUBJECT_H
16 
17 #include "gdcmObject.h"
18 
19 namespace gdcm
20 {
21 class Event;
22 class Command;
23 class SubjectInternals;
28 class GDCM_EXPORT Subject : public Object
29 {
30 public:
31  Subject();
32  ~Subject();
33 
42  unsigned long AddObserver(const Event & event, Command *);
43  unsigned long AddObserver(const Event & event, Command *) const;
44 
50  Command* GetCommand(unsigned long tag);
51 
53  void InvokeEvent( const Event & );
54 
57  void InvokeEvent( const Event & ) const;
58 
60  void RemoveObserver(unsigned long tag);
61 
63  void RemoveAllObservers();
64 
66  bool HasObserver( const Event & event ) const;
67 
68 protected:
69 
70 private:
71  SubjectInternals *Internals;
72 private:
73 };
74 
75 } // end namespace gdcm
76 
77 #endif //GDCMSUBJECT_H

Generated on Wed Jun 13 2012 20:40:37 for GDCM by doxygen 1.8.1
SourceForge.net Logo