RTK  1.4.0
Reconstruction Toolkit
rtkWatcherForTimer.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright RTK Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef rtkWatcherForTimer_h
19 #define rtkWatcherForTimer_h
20 
21 #include <itkCommand.h>
22 #include <itkProcessObject.h>
23 
24 namespace rtk
25 {
35 using namespace itk;
36 
38 {
39 public:
43 
46 
48  WatcherForTimer & operator=(const WatcherForTimer &);
49 
51  virtual ~WatcherForTimer();
52 
55  const char * GetNameOfClass()
56  {
57  return ( m_Process? m_Process->GetNameOfClass() : "None" );
58  }
59 
63  const ProcessObject * GetProcess() const { return m_Process; }
64 
65 protected:
66 
68  virtual void StartFilter();
69 
71  virtual void EndFilter();
72 
74  virtual void DeleteFilter();
75 
76 
77 private:
79 
84 
85  unsigned long m_StartTag;
86  unsigned long m_EndTag;
87  unsigned long m_DeleteTag;
88 };
89 
90 
91 } // end namespace rtk
92 
93 #endif
CommandType::Pointer m_StartFilterCommand
CommandType::Pointer m_DeleteFilterCommand
itk::ProcessObject * m_Process
const ProcessObject * GetProcess() const
SimpleMemberCommand< WatcherForTimer > CommandType
Very light watcher to monitor Start and End events on all filters.
CommandType::Pointer m_EndFilterCommand
const char * GetNameOfClass()