source: trunk/zoo-project/zoo-kernel/otbZooWatcher.h @ 558

Last change on this file since 558 was 558, checked in by djay, 9 years ago

Add OTB Application Observer.

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
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
23class /*ITK_EXPORT*/ ZooWatcher : public otb::FilterWatcherBase
24{
25public:
26
27  /** Constructor. Takes a ProcessObject to monitor and an optional
28   * comment string that is prepended to each event message. */
29  ZooWatcher(itk::ProcessObject* process,
30                        const char *comment = "");
31
32  ZooWatcher(itk::ProcessObject* process,
33                        const std::string& comment = "");
34
35  /** Default constructor */
36  ZooWatcher();
37
38  /** Get/Set/Free Configuration maps */
39  void SetConf(maps **conf)
40  {
41    m_Conf=dupMaps(conf);
42  }
43  const maps& GetConf() const
44  {
45    return *m_Conf;
46  }
47  void FreeConf(){
48    freeMaps(&m_Conf);
49    free(m_Conf);
50  }
51protected:
52
53  /** Callback method to show the ProgressEvent */
54  virtual void ShowProgress();
55
56  /** Callback method to show the StartEvent */
57  virtual void StartFilter();
58
59  /** Callback method to show the EndEvent */
60  virtual void EndFilter();
61
62private:
63
64  /** Main conf maps */
65  maps* m_Conf;
66
67};
68
69#endif
Note: See TracBrowser for help on using the repository browser.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png