ZOO-Project
otbZooWatcher.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
4  See OTBCopyright.txt for details.
5 
6  Some parts of this code are derived from ITK. See ITKCopyright.txt
7  for details.
8 
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notices for more information.
13 
14  See Ref: http://hg.orfeo-toolbox.org/OTB/ Copyright
15 
16 =========================================================================*/
17 #ifndef __zooOtbWatcher_h
18 #define __zooOtbWatcher_h
19 
20 #include "otbFilterWatcherBase.h"
21 #include "service.h"
22 
26 class /*ITK_EXPORT*/ ZooWatcher : public otb::FilterWatcherBase
27 {
28 public:
29 
35  ZooWatcher(itk::ProcessObject* process,
36  const char *comment = "");
37 
43  ZooWatcher(itk::ProcessObject* process,
44  const std::string& comment = "");
45 
47  ZooWatcher();
48 
54  void SetConf(maps **conf)
55  {
56  m_Conf=dupMaps(conf);
57  }
62  const maps& GetConf() const
63  {
64  return *m_Conf;
65  }
69  void FreeConf(){
70  freeMaps(&m_Conf);
71  free(m_Conf);
72  }
73 protected:
74 
76  virtual void ShowProgress();
77 
79  virtual void StartFilter();
80 
82  virtual void EndFilter();
83 
84 private:
85 
87  maps* m_Conf;
88 
89 };
90 
91 #endif
virtual void StartFilter()
Callback method to show the StartEvent.
Definition: otbZooWatcher.cxx:52
const maps & GetConf() const
Get Configuration maps (m_Conf)
Definition: otbZooWatcher.h:62
virtual void ShowProgress()
Callback method to show the ProgressEvent.
Definition: otbZooWatcher.cxx:41
linked list of map pointer
Definition: main_conf_read.y:243
virtual void EndFilter()
Callback method to show the EndEvent.
Definition: otbZooWatcher.cxx:59
ZOO_DLL_EXPORT maps * dupMaps(maps **)
Duplicate a Maps.
Definition: service.c:726
void SetConf(maps **conf)
Copy the original conf in the m_Conf property.
Definition: otbZooWatcher.h:54
free(curr_key)
ZooWatcher()
Default constructor.
Definition: otbZooWatcher.cxx:21
void FreeConf()
Free Configuration maps (m_Conf)
Definition: otbZooWatcher.h:69
ZOO_DLL_EXPORT void freeMaps(maps **mo)
Free allocated memory of a maps.
Definition: service.c:308
Observer used to access the ongoing status of a running OTB Application.
Definition: otbZooWatcher.h:26