OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimProcessInterface.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: See top level LICENSE.txt file.
5 //
6 // Author: Garrett Potts
7 //
8 //*************************************************************************
9 // $Id: ossimProcessInterface.h 23353 2015-06-01 19:19:10Z dburken $
10 #ifndef ossimProcessInterface_HEADER
11 #define ossimProcessInterface_HEADER 1
12 #include <ossim/base/ossimRtti.h>
13 #include <ossim/base/ossimString.h>
16 #include <iosfwd>
17 
18 class ossimObject;
20 
22 {
23 public:
24 
26  {
27  PROCESS_STATUS_UNKNOWN = 0,
28  PROCESS_STATUS_EXECUTING = 1,
29  PROCESS_STATUS_ABORTED = 2,
30  PROCESS_STATUS_ABORT_REQUEST = 3,
31  PROCESS_STATUS_NOT_EXECUTING = 4
32  };
33 
35 
36  virtual ~ossimProcessInterface();
37 
38  virtual ossimObject* getObject()=0;
39  virtual const ossimObject* getObject()const=0;
40  virtual bool execute()=0;
41 
42  virtual void abort();
43 
44  bool needsAborting()const;
45 
46  bool isAbortRequested()const;
47 
48  bool isAborted()const;
49 
50  bool isExecuting()const;
51 
52  ossimProcessStatus getProcessStatus()const;
53 
54  virtual void setProcessStatus(ossimProcessStatus processStatus);
55 
56  virtual double getPercentComplete()const;
57 
58  virtual void setPercentComplete(double percentComplete);
59 
60  virtual ossimListenerManager* getManager();
61 
62  void enableEvents();
63 
64  void disableEvents();
65 
66  void setCurrentMessage(const ossimString& message);
67 
72  virtual std::ostream& print(std::ostream& out) const;
73 
75  const ossimProcessInterface& data);
76 
77 protected:
82 
84 };
85 
86 #endif
#define OSSIMDLLEXPORT
std::ostream & print(H5::H5File *file, std::ostream &out)
Print method.
Definition: ossimH5Util.cpp:41
ostream & operator<<(ostream &out, const ossimAxes &axes)
Definition: ossimAxes.h:88
#define TYPE_DATA
Definition: ossimRtti.h:339
ossimProcessStatus theProcessStatus
#define OSSIM_DLL
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23