![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct with the attribute Properties More...
#include <GNEAttributeCarrier.h>
Public Member Functions | |
AttributeProperties () | |
default constructor More... | |
AttributeProperties (const SumoXMLAttr attribute, const int attributeProperty, const std::string &definition, std::string defaultValue="") | |
parameter constructor More... | |
bool | cannotBeZero () const |
return true if atribute cannot be zero More... | |
void | checkAttributeIntegrity () |
check Attribute integrity (For example, throw an exception if tag has a Float default value, but given default value cannot be parse to float) More... | |
SumoXMLAttr | getAttr () const |
get XML Attribute More... | |
const std::string & | getAttrStr () const |
get XML Attribute More... | |
SumoXMLAttr | getAttrSynonym () const |
get tag synonym More... | |
const std::string & | getDefaultValue () const |
get default value More... | |
const std::string & | getDefinition () const |
get default value More... | |
std::string | getDescription () const |
return a description of attribute More... | |
const std::vector< std::string > & | getDiscreteValues () const |
get discrete values More... | |
double | getMaximumRange () const |
get maximum range More... | |
double | getMinimumRange () const |
get minimum range More... | |
int | getPositionListed () const |
get position in list (used in frames for listing attributes with certain sort) More... | |
const TagProperties & | getTagPropertyParent () const |
get reference to tagProperty parent More... | |
bool | hasAttrRange () const |
return true if Attr correspond to an element that only accept a range of values More... | |
bool | hasAttrSynonym () const |
return true if Attr correspond to an element that will be written in XML with another name More... | |
bool | hasMutableDefaultValue () const |
return true if attribute owns a mutable default value More... | |
bool | hasStaticDefaultValue () const |
return true if attribute owns a static default value More... | |
bool | isBool () const |
return true if atribute is boolean More... | |
bool | isColor () const |
return true if atribute is a color More... | |
bool | isCombinable () const |
return true if atribute is combinable with other Attribute More... | |
bool | isComplex () const |
return true if atribute is complex More... | |
bool | isDiscrete () const |
return true if atribute is discrete More... | |
bool | isEnablitable () const |
return true if atribute is enablitable More... | |
bool | isExtended () const |
return true if atribute is extended More... | |
bool | isFilename () const |
return true if atribute is a filename More... | |
bool | isFloat () const |
return true if atribute is a float More... | |
bool | isInt () const |
return true if atribute is an integer More... | |
bool | isList () const |
return true if atribute is a list More... | |
bool | isNonEditable () const |
return true if atribute isn't editable More... | |
bool | isNumerical () const |
return true if atribute is numerical (int or float) More... | |
bool | isOptional () const |
return true if atribute is optional More... | |
bool | isposition () const |
return true if atribute is a position More... | |
bool | isPositive () const |
return true if atribute is positive More... | |
bool | isProbability () const |
return true if atribute is a probability More... | |
bool | isSecuential () const |
return true if atribute is sequential More... | |
bool | isString () const |
return true if atribute is a string More... | |
bool | isSUMOTime () const |
return true if atribute is a SUMOTime More... | |
bool | isSVCPermission () const |
return true if atribute is a VehicleClass More... | |
bool | isUnique () const |
return true if atribute is unique More... | |
bool | isVClass () const |
return true if atribute is a VehicleClass More... | |
bool | isWriteXMLOptional () const |
return true if atribute is write XML optional More... | |
bool | requiereUpdateGeometry () const |
return true if atribute requieres a update geometry in setAttribute(...) More... | |
void | setDiscreteValues (const std::vector< std::string > &discreteValues) |
set discrete values More... | |
void | setRange (const double minimum, const double maximum) |
set range More... | |
void | setSynonym (const SumoXMLAttr synonym) |
set synonim More... | |
void | setTagPropertyParent (TagProperties *tagPropertyParent) |
set tag property parent More... | |
~AttributeProperties () | |
destructor More... | |
Private Attributes | |
SumoXMLAttr | myAttribute |
XML Attribute. More... | |
int | myAttributeProperty |
Property of attribute. More... | |
std::string | myAttrStr |
string with the Attribute in text format (to avoid unnecesaries toStrings(...) calls) More... | |
SumoXMLAttr | myAttrSynonym |
Attribute written in XML (If is SUMO_ATTR_NOTHING), original Attribute will be written) More... | |
std::string | myDefaultValue |
default value (by default empty) More... | |
std::string | myDefinition |
text with a definition of attribute More... | |
std::vector< std::string > | myDiscreteValues |
discrete values that can take this Attribute (by default empty) More... | |
double | myMaximumRange |
maxium Range More... | |
double | myMinimumRange |
minimun Range More... | |
TagProperties * | myTagPropertyParent |
pointer to tagProperty parent More... | |
struct with the attribute Properties
Definition at line 99 of file GNEAttributeCarrier.h.
GNEAttributeCarrier::AttributeProperties::AttributeProperties | ( | ) |
default constructor
Definition at line 58 of file GNEAttributeCarrier.cpp.
GNEAttributeCarrier::AttributeProperties::AttributeProperties | ( | const SumoXMLAttr | attribute, |
const int | attributeProperty, | ||
const std::string & | definition, | ||
std::string | defaultValue = "" |
||
) |
parameter constructor
Definition at line 70 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_DEFAULTVALUEMUTABLE, GNEAttributeCarrier::ATTRPROPERTY_DEFAULTVALUESTATIC, GNEAttributeCarrier::ATTRPROPERTY_WRITEXMLOPTIONAL, and toString().
GNEAttributeCarrier::AttributeProperties::~AttributeProperties | ( | ) |
destructor
Definition at line 99 of file GNEAttributeCarrier.cpp.
bool GNEAttributeCarrier::AttributeProperties::cannotBeZero | ( | ) | const |
return true if atribute cannot be zero
Definition at line 392 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_NOTZERO, and myAttributeProperty.
Referenced by GNEAttributeCarrier::checkParsedAttribute().
void GNEAttributeCarrier::AttributeProperties::checkAttributeIntegrity | ( | ) |
check Attribute integrity (For example, throw an exception if tag has a Float default value, but given default value cannot be parse to float)
Definition at line 103 of file GNEAttributeCarrier.cpp.
References hasAttrRange(), hasAttrSynonym(), isFloat(), isInt(), isList(), isPositive(), isSecuential(), isSUMOTime(), myAttrSynonym, myMaximumRange, myMinimumRange, and SUMO_ATTR_NOTHING.
SumoXMLAttr GNEAttributeCarrier::AttributeProperties::getAttr | ( | ) | const |
get XML Attribute
Definition at line 165 of file GNEAttributeCarrier.cpp.
References myAttribute.
Referenced by GNEAttributeCarrier::TagProperties::addAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEFrameAttributesModuls::AttributesCreatorRow::checkComplexAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectRadioButton(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow(), and GNEFrameAttributesModuls::AttributesCreator::updateDisjointAttributes().
const std::string & GNEAttributeCarrier::AttributeProperties::getAttrStr | ( | ) | const |
get XML Attribute
Definition at line 171 of file GNEAttributeCarrier.cpp.
References myAttrStr.
Referenced by GNEAttributeCarrier::TagProperties::addAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEFrameAttributesModuls::AttributesCreatorRow::checkComplexAttribute(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSelectRadioButton(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectRadioButton(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), and GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute().
SumoXMLAttr GNEAttributeCarrier::AttributeProperties::getAttrSynonym | ( | ) | const |
get tag synonym
Definition at line 285 of file GNEAttributeCarrier.cpp.
References hasAttrSynonym(), and myAttrSynonym.
const std::string & GNEAttributeCarrier::AttributeProperties::getDefaultValue | ( | ) | const |
get default value
Definition at line 200 of file GNEAttributeCarrier.cpp.
References myDefaultValue.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSelectColorButton(), and GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute().
const std::string & GNEAttributeCarrier::AttributeProperties::getDefinition | ( | ) | const |
std::string GNEAttributeCarrier::AttributeProperties::getDescription | ( | ) | const |
return a description of attribute
Definition at line 206 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_ANGLE, GNEAttributeCarrier::ATTRPROPERTY_BOOL, GNEAttributeCarrier::ATTRPROPERTY_COLOR, GNEAttributeCarrier::ATTRPROPERTY_COMBINABLE, GNEAttributeCarrier::ATTRPROPERTY_DISCRETE, GNEAttributeCarrier::ATTRPROPERTY_FILENAME, GNEAttributeCarrier::ATTRPROPERTY_FLOAT, GNEAttributeCarrier::ATTRPROPERTY_INT, GNEAttributeCarrier::ATTRPROPERTY_LIST, GNEAttributeCarrier::ATTRPROPERTY_NONEDITABLE, GNEAttributeCarrier::ATTRPROPERTY_POSITION, GNEAttributeCarrier::ATTRPROPERTY_POSITIVE, GNEAttributeCarrier::ATTRPROPERTY_PROBABILITY, GNEAttributeCarrier::ATTRPROPERTY_STRING, GNEAttributeCarrier::ATTRPROPERTY_SUMOTIME, GNEAttributeCarrier::ATTRPROPERTY_UNIQUE, GNEAttributeCarrier::ATTRPROPERTY_VCLASS, GNEAttributeCarrier::ATTRPROPERTY_WRITEXMLOPTIONAL, and myAttributeProperty.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), and GNEAttributeCarrier::parseMaskedPositionAttribute().
const std::vector< std::string > & GNEAttributeCarrier::AttributeProperties::getDiscreteValues | ( | ) | const |
get discrete values
Definition at line 279 of file GNEAttributeCarrier.cpp.
References myDiscreteValues.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAttributeCarrier::checkParsedAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), and GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow().
double GNEAttributeCarrier::AttributeProperties::getMaximumRange | ( | ) | const |
get maximum range
Definition at line 305 of file GNEAttributeCarrier.cpp.
References hasAttrRange(), and myMaximumRange.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
double GNEAttributeCarrier::AttributeProperties::getMinimumRange | ( | ) | const |
get minimum range
Definition at line 295 of file GNEAttributeCarrier.cpp.
References hasAttrRange(), and myMinimumRange.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
int GNEAttributeCarrier::AttributeProperties::getPositionListed | ( | ) | const |
get position in list (used in frames for listing attributes with certain sort)
Definition at line 183 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::TagProperties::begin(), GNEAttributeCarrier::TagProperties::end(), myAttribute, and myTagPropertyParent.
Referenced by GNEFrameAttributesModuls::AttributesCreator::updateDisjointAttributes().
const GNEAttributeCarrier::TagProperties & GNEAttributeCarrier::AttributeProperties::getTagPropertyParent | ( | ) | const |
get reference to tagProperty parent
Definition at line 177 of file GNEAttributeCarrier.cpp.
References myTagPropertyParent.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), and GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow().
bool GNEAttributeCarrier::AttributeProperties::hasAttrRange | ( | ) | const |
return true if Attr correspond to an element that only accept a range of values
Definition at line 332 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_RANGE, and myAttributeProperty.
Referenced by checkAttributeIntegrity(), GNEAttributeCarrier::checkParsedAttribute(), getMaximumRange(), getMinimumRange(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), and setRange().
bool GNEAttributeCarrier::AttributeProperties::hasAttrSynonym | ( | ) | const |
return true if Attr correspond to an element that will be written in XML with another name
Definition at line 327 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_SYNONYM, and myAttributeProperty.
Referenced by checkAttributeIntegrity(), getAttrSynonym(), and setSynonym().
bool GNEAttributeCarrier::AttributeProperties::hasMutableDefaultValue | ( | ) | const |
return true if attribute owns a mutable default value
Definition at line 321 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_DEFAULTVALUEMUTABLE, and myAttributeProperty.
bool GNEAttributeCarrier::AttributeProperties::hasStaticDefaultValue | ( | ) | const |
return true if attribute owns a static default value
Definition at line 315 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_DEFAULTVALUESTATIC, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute().
bool GNEAttributeCarrier::AttributeProperties::isBool | ( | ) | const |
return true if atribute is boolean
Definition at line 356 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_BOOL, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAttributeCarrier::checkParsedAttribute(), GNEFrameAttributesModuls::AttributesCreatorRow::disableAttributesCreatorRow(), GNEFrameAttributesModuls::AttributesCreatorRow::enableAttributesCreatorRow(), GNEFrameAttributesModuls::AttributesCreatorRow::getValue(), GNEFrameAttributesModuls::AttributesCreatorRow::isAttributesCreatorRowEnabled(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeCheckButtonCheck(), and GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeRadioButtonCheck().
bool GNEAttributeCarrier::AttributeProperties::isColor | ( | ) | const |
return true if atribute is a color
Definition at line 398 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_COLOR, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAttributeCarrier::checkParsedAttribute(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
bool GNEAttributeCarrier::AttributeProperties::isCombinable | ( | ) | const |
return true if atribute is combinable with other Attribute
Definition at line 452 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_COMBINABLE, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), and GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute().
bool GNEAttributeCarrier::AttributeProperties::isComplex | ( | ) | const |
return true if atribute is complex
Definition at line 482 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_COMPLEX, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
bool GNEAttributeCarrier::AttributeProperties::isDiscrete | ( | ) | const |
return true if atribute is discrete
Definition at line 446 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_DISCRETE, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAttributeCarrier::checkParsedAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), and setDiscreteValues().
bool GNEAttributeCarrier::AttributeProperties::isEnablitable | ( | ) | const |
return true if atribute is enablitable
Definition at line 488 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_ENABLITABLE, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow().
bool GNEAttributeCarrier::AttributeProperties::isExtended | ( | ) | const |
return true if atribute is extended
Definition at line 464 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_EXTENDED, and myAttributeProperty.
bool GNEAttributeCarrier::AttributeProperties::isFilename | ( | ) | const |
return true if atribute is a filename
Definition at line 404 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_FILENAME, and myAttributeProperty.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
bool GNEAttributeCarrier::AttributeProperties::isFloat | ( | ) | const |
return true if atribute is a float
Definition at line 344 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_FLOAT, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), checkAttributeIntegrity(), GNEAttributeCarrier::checkParsedAttribute(), GNEFrameAttributesModuls::AttributesCreatorRow::disableAttributesCreatorRow(), GNEFrameAttributesModuls::AttributesCreatorRow::enableAttributesCreatorRow(), GNEFrameAttributesModuls::AttributesCreatorRow::getValue(), GNEFrameAttributesModuls::AttributesCreatorRow::isAttributesCreatorRowEnabled(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeCheckButtonCheck(), and GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeRadioButtonCheck().
bool GNEAttributeCarrier::AttributeProperties::isInt | ( | ) | const |
return true if atribute is an integer
Definition at line 338 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_INT, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), checkAttributeIntegrity(), GNEAttributeCarrier::checkParsedAttribute(), GNEFrameAttributesModuls::AttributesCreatorRow::disableAttributesCreatorRow(), GNEFrameAttributesModuls::AttributesCreatorRow::enableAttributesCreatorRow(), GNEFrameAttributesModuls::AttributesCreatorRow::getValue(), GNEFrameAttributesModuls::AttributesCreatorRow::isAttributesCreatorRowEnabled(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeCheckButtonCheck(), and GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeRadioButtonCheck().
bool GNEAttributeCarrier::AttributeProperties::isList | ( | ) | const |
return true if atribute is a list
Definition at line 422 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_LIST, and myAttributeProperty.
Referenced by checkAttributeIntegrity(), GNEAttributeCarrier::checkParsedAttribute(), and GNENet::replaceInListAttribute().
bool GNEAttributeCarrier::AttributeProperties::isNonEditable | ( | ) | const |
return true if atribute isn't editable
Definition at line 458 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_NONEDITABLE, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), and GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow().
bool GNEAttributeCarrier::AttributeProperties::isNumerical | ( | ) | const |
return true if atribute is numerical (int or float)
Definition at line 380 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_FLOAT, GNEAttributeCarrier::ATTRPROPERTY_INT, GNEAttributeCarrier::ATTRPROPERTY_SUMOTIME, and myAttributeProperty.
bool GNEAttributeCarrier::AttributeProperties::isOptional | ( | ) | const |
return true if atribute is optional
Definition at line 476 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_OPTIONAL, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow().
bool GNEAttributeCarrier::AttributeProperties::isposition | ( | ) | const |
return true if atribute is a position
Definition at line 368 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_POSITION, and myAttributeProperty.
Referenced by GNEAttributeCarrier::checkParsedAttribute().
bool GNEAttributeCarrier::AttributeProperties::isPositive | ( | ) | const |
return true if atribute is positive
Definition at line 386 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_POSITIVE, and myAttributeProperty.
Referenced by checkAttributeIntegrity(), GNEAttributeCarrier::checkParsedAttribute(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
bool GNEAttributeCarrier::AttributeProperties::isProbability | ( | ) | const |
return true if atribute is a probability
Definition at line 374 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_PROBABILITY, and myAttributeProperty.
Referenced by GNEAttributeCarrier::checkParsedAttribute(), and GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
bool GNEAttributeCarrier::AttributeProperties::isSecuential | ( | ) | const |
return true if atribute is sequential
Definition at line 428 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_SECUENCIAL, and myAttributeProperty.
Referenced by checkAttributeIntegrity().
bool GNEAttributeCarrier::AttributeProperties::isString | ( | ) | const |
return true if atribute is a string
Definition at line 362 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_STRING, and myAttributeProperty.
bool GNEAttributeCarrier::AttributeProperties::isSUMOTime | ( | ) | const |
return true if atribute is a SUMOTime
Definition at line 350 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_SUMOTIME, and myAttributeProperty.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), checkAttributeIntegrity(), GNEAttributeCarrier::checkParsedAttribute(), GNEFrameAttributesModuls::AttributesCreatorRow::disableAttributesCreatorRow(), GNEFrameAttributesModuls::AttributesCreatorRow::enableAttributesCreatorRow(), GNEFrameAttributesModuls::AttributesCreatorRow::getValue(), GNEFrameAttributesModuls::AttributesCreatorRow::isAttributesCreatorRowEnabled(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeCheckButtonCheck(), and GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeRadioButtonCheck().
bool GNEAttributeCarrier::AttributeProperties::isSVCPermission | ( | ) | const |
return true if atribute is a VehicleClass
Definition at line 416 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_LIST, GNEAttributeCarrier::ATTRPROPERTY_VCLASS, and myAttributeProperty.
bool GNEAttributeCarrier::AttributeProperties::isUnique | ( | ) | const |
return true if atribute is unique
Definition at line 434 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_UNIQUE, and myAttributeProperty.
bool GNEAttributeCarrier::AttributeProperties::isVClass | ( | ) | const |
return true if atribute is a VehicleClass
Definition at line 410 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_VCLASS, and myAttributeProperty.
Referenced by GNEAttributeCarrier::checkParsedAttribute().
bool GNEAttributeCarrier::AttributeProperties::isWriteXMLOptional | ( | ) | const |
return true if atribute is write XML optional
Definition at line 440 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_WRITEXMLOPTIONAL, and myAttributeProperty.
Referenced by GNEAttributeCarrier::checkParsedAttribute().
bool GNEAttributeCarrier::AttributeProperties::requiereUpdateGeometry | ( | ) | const |
return true if atribute requieres a update geometry in setAttribute(...)
Definition at line 470 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::ATTRPROPERTY_UPDATEGEOMETRY, and myAttributeProperty.
Referenced by GNEChange_Attribute::redo(), and GNEChange_Attribute::undo().
void GNEAttributeCarrier::AttributeProperties::setDiscreteValues | ( | const std::vector< std::string > & | discreteValues | ) |
set discrete values
Definition at line 128 of file GNEAttributeCarrier.cpp.
References isDiscrete(), and myDiscreteValues.
Referenced by GNEAttributeCarrier::fillCarFollowingModelAttributes(), GNEAttributeCarrier::fillDemandElements(), and GNEAttributeCarrier::fillNetElements().
void GNEAttributeCarrier::AttributeProperties::setRange | ( | const double | minimum, |
const double | maximum | ||
) |
set range
Definition at line 148 of file GNEAttributeCarrier.cpp.
References hasAttrRange(), myMaximumRange, and myMinimumRange.
Referenced by GNEAttributeCarrier::fillAdditionals(), and GNEAttributeCarrier::fillCarFollowingModelAttributes().
void GNEAttributeCarrier::AttributeProperties::setSynonym | ( | const SumoXMLAttr | synonym | ) |
set synonim
Definition at line 138 of file GNEAttributeCarrier.cpp.
References hasAttrSynonym(), and myAttrSynonym.
Referenced by GNEAttributeCarrier::fillAdditionals().
void GNEAttributeCarrier::AttributeProperties::setTagPropertyParent | ( | TagProperties * | tagPropertyParent | ) |
set tag property parent
Definition at line 159 of file GNEAttributeCarrier.cpp.
References myTagPropertyParent.
|
private |
XML Attribute.
Definition at line 251 of file GNEAttributeCarrier.h.
Referenced by getAttr(), and getPositionListed().
|
private |
Property of attribute.
Definition at line 260 of file GNEAttributeCarrier.h.
Referenced by cannotBeZero(), getDescription(), hasAttrRange(), hasAttrSynonym(), hasMutableDefaultValue(), hasStaticDefaultValue(), isBool(), isColor(), isCombinable(), isComplex(), isDiscrete(), isEnablitable(), isExtended(), isFilename(), isFloat(), isInt(), isList(), isNonEditable(), isNumerical(), isOptional(), isposition(), isPositive(), isProbability(), isSecuential(), isString(), isSUMOTime(), isSVCPermission(), isUnique(), isVClass(), isWriteXMLOptional(), and requiereUpdateGeometry().
|
private |
string with the Attribute in text format (to avoid unnecesaries toStrings(...) calls)
Definition at line 257 of file GNEAttributeCarrier.h.
Referenced by getAttrStr().
|
private |
Attribute written in XML (If is SUMO_ATTR_NOTHING), original Attribute will be written)
Definition at line 272 of file GNEAttributeCarrier.h.
Referenced by checkAttributeIntegrity(), getAttrSynonym(), and setSynonym().
|
private |
default value (by default empty)
Definition at line 266 of file GNEAttributeCarrier.h.
Referenced by getDefaultValue().
|
private |
text with a definition of attribute
Definition at line 263 of file GNEAttributeCarrier.h.
Referenced by getDefinition().
|
private |
discrete values that can take this Attribute (by default empty)
Definition at line 269 of file GNEAttributeCarrier.h.
Referenced by getDiscreteValues(), and setDiscreteValues().
|
private |
maxium Range
Definition at line 278 of file GNEAttributeCarrier.h.
Referenced by checkAttributeIntegrity(), getMaximumRange(), and setRange().
|
private |
minimun Range
Definition at line 275 of file GNEAttributeCarrier.h.
Referenced by checkAttributeIntegrity(), getMinimumRange(), and setRange().
|
private |
pointer to tagProperty parent
Definition at line 254 of file GNEAttributeCarrier.h.
Referenced by getPositionListed(), getTagPropertyParent(), and setTagPropertyParent().