/usr/include/ossim/base/ossimEvent.h is in libossim-dev 1.7.21-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
// Description: A brief description of the contents of the file.
//
//
//*************************************************************************
// $Id: ossimEvent.h 13362 2008-08-01 14:02:32Z gpotts $
#ifndef ossimEvent_HEADER
#define ossimEvent_HEADER
#include <ossim/base/ossimEventIds.h>
#include <ossim/base/ossimObject.h>
class OSSIMDLLEXPORT ossimEvent : public ossimObject
{
public:
enum PropagationType
{
PROPAGATION_NONE = 0,
PROPAGATION_INPUT = 1,
PROPAGATION_OUTPUT = 2
};
/**
* @param object The object associated with the event if any.
*
* @param id The event id.
*/
ossimEvent(ossimObject* object=NULL,
long id=OSSIM_EVENT_NULL_ID);
ossimEvent(const ossimEvent& rhs);
long getId()const;
void setId(long id);
bool isConsumed()const;
void setConsumedFlag(bool flag=true);
void consume();
/**
* This is the originating object that originally
* produced the event.
*/
const ossimObject* getObject()const;
ossimObject* getObject();
const ossimObject* getCurrentObject()const;
ossimObject* getCurrentObject();
void setObject(ossimObject* object);
void setCurrentObject(ossimObject* object);
void setPropagationType(PropagationType type);
bool isPropagatingToOutputs()const;
bool isPropagatingToInputs()const;
protected:
ossimObject* theObject;
ossimObject* theCurrentObject;
long theId;
bool theIsConsumedFlag;
PropagationType thePropagationType;
TYPE_DATA
};
#endif /* #ifndef ossimEvent_HEADER */
|