OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimStringProperty.h>
Public Member Functions | |
ossimStringProperty (const ossimString &name=ossimString(""), const ossimString &value=ossimString(""), bool editableFlag=true, const std::vector< ossimString > &constraintList=std::vector< ossimString >()) | |
ossimStringProperty (const ossimStringProperty &rhs) | |
virtual ossimObject * | dup () const |
virtual const ossimProperty & | assign (const ossimProperty &rhs) |
void | setEditableFlag (bool flag) |
bool | getEditableFlag () const |
bool | isEditable () const |
void | clearConstraints () |
void | setConstraints (const std::vector< ossimString > &constraintList) |
void | addConstraint (const ossimString &value) |
const std::vector< ossimString > & | getConstraints () const |
bool | hasConstraints () const |
virtual bool | setValue (const ossimString &value) |
virtual void | valueToString (ossimString &valueResult) const |
![]() | |
ossimProperty (const ossimString &name=ossimString("")) | |
ossimProperty (const ossimProperty &rhs) | |
const ossimProperty & | operator= (const ossimProperty &rhs) |
const ossimString & | getName () const |
void | setName (const ossimString &name) |
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) |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
Protected Attributes | |
ossimString | theValue |
bool | theEditableFlag |
std::vector< ossimString > | theConstraints |
![]() | |
ossimString | theName |
ossimString | theDescription |
bool | theReadOnlyFlag |
ossimPropertyChangeType | theChangeType |
bool | theModifiedFlag |
Additional Inherited Members | |
![]() | |
enum | ossimPropertyChangeType { ossimPropertyChangeType_NOTSPECIFIED = 0, ossimPropertyChangeType_CACHE_REFRESH = 1, ossimPropertyChangeType_FULL_REFRESH = 2, ossimPropertyChangeType_AFFECTS_OTHERS = 4, ossimPropertyChangeType_ALL = (ossimPropertyChangeType_CACHE_REFRESH|ossimPropertyChangeType_FULL_REFRESH|ossimPropertyChangeType_AFFECTS_OTHERS) } |
![]() | |
virtual | ~ossimProperty () |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 15 of file ossimStringProperty.h.
ossimStringProperty::ossimStringProperty | ( | const ossimString & | name = ossimString("") , |
const ossimString & | value = ossimString("") , |
||
bool | editableFlag = true , |
||
const std::vector< ossimString > & | constraintList = std::vector<ossimString>() |
||
) |
Definition at line 14 of file ossimStringProperty.cpp.
Referenced by dup().
ossimStringProperty::ossimStringProperty | ( | const ossimStringProperty & | rhs | ) |
Definition at line 25 of file ossimStringProperty.cpp.
void ossimStringProperty::addConstraint | ( | const ossimString & | value | ) |
Definition at line 82 of file ossimStringProperty.cpp.
References theConstraints.
Referenced by ossimNitfWriter::getProperty(), ossimCastTileSourceFilter::getProperty(), ossimNitfFileHeaderV2_X::getProperty(), ossimTiffWriter::getProperty(), ossimNitfFileHeaderV2_1::getProperty(), and ossimImageHandler::getProperty().
|
virtual |
Reimplemented from ossimProperty.
Definition at line 38 of file ossimStringProperty.cpp.
References ossimProperty::assign(), theConstraints, theEditableFlag, theValue, and ossimProperty::valueToString().
void ossimStringProperty::clearConstraints | ( | ) |
Clears the constraints for this string. You can constrain it to a string list by calling setConstraints.
Definition at line 72 of file ossimStringProperty.cpp.
References theConstraints.
|
virtual |
Duplicates the object and returns a new one
Reimplemented from ossimObject.
Definition at line 33 of file ossimStringProperty.cpp.
References ossimStringProperty().
const std::vector< ossimString > & ossimStringProperty::getConstraints | ( | ) | const |
Definition at line 87 of file ossimStringProperty.cpp.
References theConstraints.
Referenced by ossimImageHandlerRegistry::printReaderProps(), and ossimImageWriterFactoryRegistry::printWriterProps().
bool ossimStringProperty::getEditableFlag | ( | ) | const |
Definition at line 61 of file ossimStringProperty.cpp.
References theEditableFlag.
Referenced by isEditable().
bool ossimStringProperty::hasConstraints | ( | ) | const |
Definition at line 92 of file ossimStringProperty.cpp.
References theConstraints.
bool ossimStringProperty::isEditable | ( | ) | const |
Definition at line 66 of file ossimStringProperty.cpp.
References getEditableFlag().
void ossimStringProperty::setConstraints | ( | const std::vector< ossimString > & | constraintList | ) |
Sets the constraints for this property. If the editable flag is present then this says the editing is not readonly and one can hand type the value in without only selecting from a choice list.
Definition at line 77 of file ossimStringProperty.cpp.
References theConstraints.
Referenced by ossimImageFileWriter::getProperty().
void ossimStringProperty::setEditableFlag | ( | bool | flag | ) |
Definition at line 56 of file ossimStringProperty.cpp.
References theEditableFlag.
Referenced by ossimImageHandler::getProperty().
|
virtual |
will try to set the value. If the constraints are set it will make sure that the value is in the list and if its not then it will return false
Implements ossimProperty.
Definition at line 97 of file ossimStringProperty.cpp.
References theConstraints, and theValue.
|
virtual |
Implements ossimProperty.
Definition at line 123 of file ossimStringProperty.cpp.
References theValue.
Referenced by ossimTiffWriter::setProperty().
|
protected |
Definition at line 68 of file ossimStringProperty.h.
Referenced by addConstraint(), assign(), clearConstraints(), getConstraints(), hasConstraints(), setConstraints(), and setValue().
|
protected |
Definition at line 67 of file ossimStringProperty.h.
Referenced by assign(), getEditableFlag(), and setEditableFlag().
|
protected |
Definition at line 66 of file ossimStringProperty.h.
Referenced by assign(), setValue(), and valueToString().