OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimEvent.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts
6 // Description: A brief description of the contents of the file.
7 //
8 //
9 //*************************************************************************
10 // $Id: ossimEvent.h 13362 2008-08-01 14:02:32Z gpotts $
11 #ifndef ossimEvent_HEADER
12 #define ossimEvent_HEADER
14 #include <ossim/base/ossimObject.h>
15 
17 {
18 public:
20  {
21  PROPAGATION_NONE = 0,
22  PROPAGATION_INPUT = 1,
23  PROPAGATION_OUTPUT = 2
24  };
30  ossimEvent(ossimObject* object=NULL,
31  long id=OSSIM_EVENT_NULL_ID);
32 
33  ossimEvent(const ossimEvent& rhs);
34 
35  long getId()const;
36  void setId(long id);
37 
38  bool isConsumed()const;
39  void setConsumedFlag(bool flag=true);
40  void consume();
41 
46  const ossimObject* getObject()const;
47  ossimObject* getObject();
48  const ossimObject* getCurrentObject()const;
49  ossimObject* getCurrentObject();
50 
51  void setObject(ossimObject* object);
52  void setCurrentObject(ossimObject* object);
53 
54  void setPropagationType(PropagationType type);
55  bool isPropagatingToOutputs()const;
56  bool isPropagatingToInputs()const;
57 protected:
60  long theId;
63 
65 };
66 
67 #endif /* #ifndef ossimEvent_HEADER */
#define OSSIMDLLEXPORT
ossimObject * theObject
Definition: ossimEvent.h:58
#define OSSIM_EVENT_NULL_ID
Definition: ossimEventIds.h:14
#define TYPE_DATA
Definition: ossimRtti.h:339
PropagationType thePropagationType
Definition: ossimEvent.h:62
bool theIsConsumedFlag
Definition: ossimEvent.h:61
ossimObject * theCurrentObject
Definition: ossimEvent.h:59
long theId
Definition: ossimEvent.h:60