/usr/include/ossim/base/ossimProperty.h is in libossim-dev 1.8.16-4ubuntu1.
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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimProperty.h 19917 2011-08-09 11:12:24Z gpotts $
#ifndef ossimProperty_HEADER
#define ossimProperty_HEADER
#include <ossim/base/ossimObject.h>
#include <ossim/base/ossimString.h>
#include <ossim/base/ossimXmlNode.h>
class ossimContainerProperty;
class OSSIM_DLL ossimProperty : public ossimObject
{
public:
/*!
* This are bitwise and can be ored together
* The change type is very important and
* it determines how things are refreshed.
*/
enum ossimPropertyChangeType
{
ossimPropertyChangeType_NOTSPECIFIED = 0,
ossimPropertyChangeType_CACHE_REFRESH = 1,
ossimPropertyChangeType_FULL_REFRESH = 2,
ossimPropertyChangeType_AFFECTS_OTHERS = 4, // used to identify if this property modification affects the values of other properties once set
ossimPropertyChangeType_ALL = (ossimPropertyChangeType_CACHE_REFRESH|ossimPropertyChangeType_FULL_REFRESH|ossimPropertyChangeType_AFFECTS_OTHERS)
};
ossimProperty(const ossimString& name=ossimString(""));
ossimProperty(const ossimProperty& rhs);
const ossimProperty& operator = (const ossimProperty& rhs);
virtual const ossimProperty& assign(const ossimProperty& rhs);
const ossimString& getName()const;
void setName(const ossimString& name);
virtual bool setValue(const ossimString& value)=0;
virtual void valueToString(ossimString& valueResult)const=0;
virtual ossimString valueToString()const;
virtual const ossimContainerProperty* asContainer()const;
virtual ossimContainerProperty* asContainer();
bool isChangeTypeSet(int type)const;
void clearChangeType();
void setChangeType(int type, bool on=true);
void setFullRefreshBit();
void setCacheRefreshBit();
ossimPropertyChangeType getChangeType()const;
bool isFullRefresh()const;
bool isCacheRefresh()const;
bool isChangeTypeSpecified()const;
bool affectsOthers()const;
virtual void setReadOnlyFlag(bool flag);
bool getReadOnlyFlag()const;
bool isReadOnly()const;
void setModifiedFlag(bool flag);
bool getModifiedFlag()const;
bool isModified()const;
void clearModifiedFlag();
void setDescription(const ossimString& description);
virtual ossimString getDescription()const;
virtual ossimRefPtr<ossimXmlNode> toXml()const;
virtual void saveState(ossimKeywordlist& kwl, const ossimString& prefix = "")const;
virtual void accept(ossimVisitor& visitor);
protected:
virtual ~ossimProperty();
ossimString theName;
ossimString theDescription;
bool theReadOnlyFlag;
ossimPropertyChangeType theChangeType;
bool theModifiedFlag;
TYPE_DATA
};
#endif
|