OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimStringListProperty.h>
Public Member Functions | |
ossimStringListProperty (const ossimString &name=ossimString(""), const std::vector< ossimString > &value=std::vector< ossimString >()) | |
ossimStringListProperty (const ossimStringListProperty &rhs) | |
ossimObject * | dup () const |
virtual const ossimProperty & | assign (const ossimProperty &rhs) |
virtual bool | setValue (const ossimString &value) |
virtual void | valueToString (ossimString &valueResult) const |
void | clearValueList () |
ossimString | getValueAt (int idx) const |
bool | setValueAt (int idx, const ossimString &value) |
bool | addValue (const ossimString &value) |
ossim_uint32 | getNumberOfValues () const |
ossim_uint32 | getNumberOfContraints () const |
ossimString | getConstraintAt (ossim_uint32 idx) const |
void | setConstraints (const std::vector< ossimString > &constraints) |
bool | hasConstraints () const |
void | setUniqueFlag (bool flag) |
void | setOrderMattersFlag (bool flag) |
void | setNumberOfValuesBounds (int minNumber, int maxNumber) |
void | getNumberofValuesBounds (int &minNumber, int &maxNumber) 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 Member Functions | |
bool | findValueInConstraintList (const ossimString &value) const |
bool | findValueInValueList (const ossimString &value) const |
bool | canAddValue (const ossimString &value) const |
![]() | |
virtual | ~ossimProperty () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
std::vector< ossimString > | theValueList |
std::vector< ossimString > | theConstraintList |
bool | theUniqueFlag |
bool | theOrderMattersFlag |
int | theMinNumberOfValues |
int | theMaxNumberOfValues |
![]() | |
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) } |
Definition at line 14 of file ossimStringListProperty.h.
ossimStringListProperty::ossimStringListProperty | ( | const ossimString & | name = ossimString("") , |
const std::vector< ossimString > & | value = std::vector<ossimString>() |
||
) |
Definition at line 17 of file ossimStringListProperty.cpp.
Referenced by dup().
ossimStringListProperty::ossimStringListProperty | ( | const ossimStringListProperty & | rhs | ) |
Definition at line 26 of file ossimStringListProperty.cpp.
bool ossimStringListProperty::addValue | ( | const ossimString & | value | ) |
Definition at line 150 of file ossimStringListProperty.cpp.
References canAddValue(), and theValueList.
Referenced by setValue().
|
virtual |
Reimplemented from ossimProperty.
Definition at line 42 of file ossimStringListProperty.cpp.
References ossimProperty::assign(), theConstraintList, theMaxNumberOfValues, theMinNumberOfValues, theOrderMattersFlag, theUniqueFlag, and theValueList.
|
protected |
Definition at line 234 of file ossimStringListProperty.cpp.
References findValueInConstraintList(), findValueInValueList(), hasConstraints(), and theUniqueFlag.
Referenced by addValue(), and setValueAt().
void ossimStringListProperty::clearValueList | ( | ) |
Definition at line 113 of file ossimStringListProperty.cpp.
References theValueList.
Referenced by setValue().
|
virtual |
Reimplemented from ossimObject.
Definition at line 37 of file ossimStringListProperty.cpp.
References ossimStringListProperty().
|
protected |
Definition at line 220 of file ossimStringListProperty.cpp.
References theConstraintList.
Referenced by canAddValue().
|
protected |
Definition at line 227 of file ossimStringListProperty.cpp.
References theConstraintList, and theValueList.
Referenced by canAddValue().
ossimString ossimStringListProperty::getConstraintAt | ( | ossim_uint32 | idx | ) | const |
Definition at line 176 of file ossimStringListProperty.cpp.
References theConstraintList.
ossim_uint32 ossimStringListProperty::getNumberOfContraints | ( | ) | const |
Definition at line 171 of file ossimStringListProperty.cpp.
References theConstraintList.
ossim_uint32 ossimStringListProperty::getNumberOfValues | ( | ) | const |
Definition at line 166 of file ossimStringListProperty.cpp.
References theValueList.
Referenced by getValueAt(), and setValueAt().
void ossimStringListProperty::getNumberofValuesBounds | ( | int & | minNumber, |
int & | maxNumber | ||
) | const |
Definition at line 213 of file ossimStringListProperty.cpp.
References theMaxNumberOfValues, and theMinNumberOfValues.
ossimString ossimStringListProperty::getValueAt | ( | int | idx | ) | const |
Definition at line 118 of file ossimStringListProperty.cpp.
References getNumberOfValues(), and theValueList.
bool ossimStringListProperty::hasConstraints | ( | ) | const |
Definition at line 191 of file ossimStringListProperty.cpp.
References theConstraintList.
Referenced by canAddValue().
void ossimStringListProperty::setConstraints | ( | const std::vector< ossimString > & | constraints | ) |
Definition at line 186 of file ossimStringListProperty.cpp.
References theConstraintList.
void ossimStringListProperty::setNumberOfValuesBounds | ( | int | minNumber, |
int | maxNumber | ||
) |
You can specify how many values are allowed in the value list If any of the values are less than 0 then now constraints are placed on that value. So if the min was < 0 then there is no minumum number of values. If the max is < 0 then there is no maximum number of values.
Definition at line 206 of file ossimStringListProperty.cpp.
References theMaxNumberOfValues, and theMinNumberOfValues.
void ossimStringListProperty::setOrderMattersFlag | ( | bool | flag | ) |
Definition at line 201 of file ossimStringListProperty.cpp.
References theOrderMattersFlag.
void ossimStringListProperty::setUniqueFlag | ( | bool | flag | ) |
|
virtual |
Implements ossimProperty.
Definition at line 60 of file ossimStringListProperty.cpp.
References addValue(), clearValueList(), ossimKeywordlist::find(), ossimKeywordlist::getSubstringKeyList(), ossimKeywordlist::parseStream(), and ossimString::toString().
bool ossimStringListProperty::setValueAt | ( | int | idx, |
const ossimString & | value | ||
) |
Definition at line 129 of file ossimStringListProperty.cpp.
References canAddValue(), getNumberOfValues(), and theValueList.
|
virtual |
Implements ossimProperty.
Definition at line 97 of file ossimStringListProperty.cpp.
References ossimKeywordlist::add(), theValueList, ossimKeywordlist::toString(), and ossimString::toString().
|
protected |
Definition at line 54 of file ossimStringListProperty.h.
Referenced by assign(), findValueInConstraintList(), findValueInValueList(), getConstraintAt(), getNumberOfContraints(), hasConstraints(), and setConstraints().
|
protected |
Definition at line 58 of file ossimStringListProperty.h.
Referenced by assign(), getNumberofValuesBounds(), and setNumberOfValuesBounds().
|
protected |
Definition at line 57 of file ossimStringListProperty.h.
Referenced by assign(), getNumberofValuesBounds(), and setNumberOfValuesBounds().
|
protected |
Definition at line 56 of file ossimStringListProperty.h.
Referenced by assign(), and setOrderMattersFlag().
|
protected |
Definition at line 55 of file ossimStringListProperty.h.
Referenced by assign(), canAddValue(), and setUniqueFlag().
|
protected |
Definition at line 53 of file ossimStringListProperty.h.
Referenced by addValue(), assign(), clearValueList(), findValueInValueList(), getNumberOfValues(), getValueAt(), setValueAt(), and valueToString().