SUMO - Simulation of Urban MObility
GNEAttributeCarrier::TagProperties Class Reference

struct with the attribute Properties More...

#include <GNEAttributeCarrier.h>

Collaboration diagram for GNEAttributeCarrier::TagProperties:
Collaboration graph

Public Member Functions

void addAttribute (SumoXMLAttr attr, const int attributeProperty, const std::string &definition, const std::string &defaultValue, std::vector< std::string > discreteValues=std::vector< std::string >(), SumoXMLAttr synonym=SUMO_ATTR_NOTHING)
 add attribute (duplicated attributed aren't allowed) More...
 
void addAttribute (SumoXMLAttr attr, const int attributeProperty, const std::string &definition, const std::string &defaultValue, SumoXMLAttr synonym)
 add attribute with synonym (duplicated attributed aren't allowed) More...
 
void addAttribute (SumoXMLAttr attr, const int attributeProperty, const std::string &definition, const std::string &defaultValue, double minimum, double maximum)
 add attribute with a range More...
 
void addDeprecatedAttribute (SumoXMLAttr attr)
 add deprecated Attribute More...
 
std::map< SumoXMLAttr, AttributeProperties >::const_iterator begin () const
 get begin of attribute values (used for iterate) More...
 
bool canAutomaticSortChilds () const
 return true if tag correspond to an element that can sort their childs automatic More...
 
bool canBePlacedOverEdge () const
 return true if tag correspond to an element that can be placed over an edge More...
 
bool canBePlacedOverEdges () const
 return true if tag correspond to an element that can be placed over a list of edges More...
 
bool canBePlacedOverJunction () const
 return true if tag correspond to an element that can be placed over a junction More...
 
bool canBePlacedOverLane () const
 return true if tag correspond to an element that can be placed over a lane More...
 
bool canBePlacedOverLanes () const
 return true if tag correspond More...
 
bool canBePlacedOverView () const
 return true if tag correspond to an element that can be placed over the view More...
 
bool canBeReparent () const
 return true if tag correspond to an element that can be reparent More...
 
bool canBlockMovement () const
 return true if tag correspond to an element that can block their movement More...
 
bool canBlockShape () const
 return true if tag correspond to an element that can block their shape More...
 
bool canCloseShape () const
 return true if tag correspond to an element that can close their shape More...
 
bool canMaskStartEndPos () const
 return true if tag correspond to an element that can mask the attributes "start" and "end" position as attribute "lenght" More...
 
bool canMaskXYZPositions () const
 return true if tag correspond to an element that can mask the attributes "X", "Y" and "Z" position as attribute "Position" More...
 
bool canWriteChildsSeparate () const
 return true if tag correspond to an element that can sort their childs automatic More...
 
void checkTagIntegrity () const
 check Tag integrity (this include all their attributes) More...
 
std::map< SumoXMLAttr, AttributeProperties >::const_iterator end () const
 get end of attribute values (used for iterate) More...
 
const AttributePropertiesgetAttributeProperties (SumoXMLAttr attr) const
 get attribute (throw error if doesn't exist) More...
 
const std::string & getDefaultValue (SumoXMLAttr attr) const
 return the default value of the attribute of an element More...
 
GUIIcon getGUIIcon () const
 get GUI icon associated to this Tag More...
 
int getNumberOfAttributes () const
 get number of attributes More...
 
SumoXMLTag getParentTag () const
 if Tag owns a parent, return parent tag More...
 
int getPositionListed () const
 get position in list (used in frames for listing tags with certain sort) More...
 
SumoXMLTag getTag () const
 get Tag vinculated with this attribute Property More...
 
const std::string & getTagStr () const
 get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toString(...) More...
 
SumoXMLTag getTagSynonym () const
 get tag synonym More...
 
bool hasAttribute (SumoXMLAttr attr) const
 check if current TagProperties owns the attribute attr More...
 
bool hasDialog () const
 return true if tag correspond to an element that can be edited using a dialog More...
 
bool hasGenericParameters () const
 return true if Tag correspond to an element that supports generic parameters More...
 
bool hasGEOPosition () const
 return true if tag correspond to an element that can use a geo position More...
 
bool hasGEOShape () const
 return true if tag correspond to an element that can use a geo shape More...
 
bool hasMinimumNumberOfChilds () const
 return true if tag correspond to an element that only have a limited number of childs More...
 
bool hasParent () const
 return true if tag correspond to an element that can had another element as parent More...
 
bool hasTagSynonym () const
 return true if tag correspond to an element that will be written in XML with another tag More...
 
bool isAdditional () const
 return true if tag correspond to an additional More...
 
bool isAttributeDeprecated (SumoXMLAttr attr) const
 return true if attribute of this tag is deprecated More...
 
bool isDetector () const
 return true if tag correspond to a shape (Only used to group all detectors in the XML) More...
 
bool isDrawable () const
 return true if tag correspond to a drawable element More...
 
bool isNetElement () const
 return true if tag correspond to a netElement More...
 
bool isSelectable () const
 return true if tag correspond to a selectable element More...
 
bool isShape () const
 return true if tag correspond to a shape More...
 
bool isStoppingPlace () const
 return true if tag correspond to a detector (Only used to group all stoppingPlaces in the output XML) More...
 
bool isTAZ () const
 return true if tag correspond to a TAZ More...
 
 TagProperties ()
 default constructor More...
 
 TagProperties (SumoXMLTag tag, int tagProperty, int &positionListed, GUIIcon icon, SumoXMLTag parentTag=SUMO_TAG_NOTHING, SumoXMLTag tagSynonym=SUMO_TAG_NOTHING)
 parameter constructor More...
 
 ~TagProperties ()
 destructor More...
 

Private Attributes

std::map< SumoXMLAttr, AttributePropertiesmyAttributeProperties
 map with the attribute values vinculated with this Tag More...
 
std::vector< SumoXMLAttrmyDeprecatedAttributes
 List with the deprecated Attributes. More...
 
GUIIcon myIcon
 icon associated to this Tag More...
 
SumoXMLTag myParentTag
 parent tag More...
 
int myPositionListed
 listed position More...
 
SumoXMLTag myTag
 Sumo XML Tag vinculated wit this tag Property. More...
 
int myTagProperty
 Property of attribute. More...
 
std::string myTagStr
 Sumo XML Tag vinculated wit this tag Property in String format. More...
 
SumoXMLTag myTagSynonym
 Tag written in XML (If is SUMO_TAG_NOTHING), original Tag name will be written) More...
 

Detailed Description

struct with the attribute Properties

Definition at line 257 of file GNEAttributeCarrier.h.

Constructor & Destructor Documentation

◆ TagProperties() [1/2]

GNEAttributeCarrier::TagProperties::TagProperties ( )

default constructor

Definition at line 378 of file GNEAttributeCarrier.cpp.

◆ TagProperties() [2/2]

GNEAttributeCarrier::TagProperties::TagProperties ( SumoXMLTag  tag,
int  tagProperty,
int &  positionListed,
GUIIcon  icon,
SumoXMLTag  parentTag = SUMO_TAG_NOTHING,
SumoXMLTag  tagSynonym = SUMO_TAG_NOTHING 
)

parameter constructor

Definition at line 388 of file GNEAttributeCarrier.cpp.

◆ ~TagProperties()

GNEAttributeCarrier::TagProperties::~TagProperties ( )

destructor

Definition at line 402 of file GNEAttributeCarrier.cpp.

Member Function Documentation

◆ addAttribute() [1/3]

void GNEAttributeCarrier::TagProperties::addAttribute ( SumoXMLAttr  attr,
const int  attributeProperty,
const std::string &  definition,
const std::string &  defaultValue,
std::vector< std::string >  discreteValues = std::vector<std::string>(),
SumoXMLAttr  synonym = SUMO_ATTR_NOTHING 
)

add attribute (duplicated attributed aren't allowed)

Definition at line 475 of file GNEAttributeCarrier.cpp.

References isAttributeDeprecated(), myAttributeProperties, and toString().

◆ addAttribute() [2/3]

void GNEAttributeCarrier::TagProperties::addAttribute ( SumoXMLAttr  attr,
const int  attributeProperty,
const std::string &  definition,
const std::string &  defaultValue,
SumoXMLAttr  synonym 
)

add attribute with synonym (duplicated attributed aren't allowed)

Definition at line 487 of file GNEAttributeCarrier.cpp.

References isAttributeDeprecated(), myAttributeProperties, and toString().

◆ addAttribute() [3/3]

void GNEAttributeCarrier::TagProperties::addAttribute ( SumoXMLAttr  attr,
const int  attributeProperty,
const std::string &  definition,
const std::string &  defaultValue,
double  minimum,
double  maximum 
)

add attribute with a range

Definition at line 499 of file GNEAttributeCarrier.cpp.

References isAttributeDeprecated(), myAttributeProperties, SUMO_ATTR_NOTHING, and toString().

◆ addDeprecatedAttribute()

void GNEAttributeCarrier::TagProperties::addDeprecatedAttribute ( SumoXMLAttr  attr)

add deprecated Attribute

Definition at line 511 of file GNEAttributeCarrier.cpp.

References myAttributeProperties, myDeprecatedAttributes, and toString().

◆ begin()

std::map< SumoXMLAttr, GNEAttributeCarrier::AttributeProperties >::const_iterator GNEAttributeCarrier::TagProperties::begin ( ) const

get begin of attribute values (used for iterate)

Definition at line 541 of file GNEAttributeCarrier.cpp.

References myAttributeProperties.

◆ canAutomaticSortChilds()

bool GNEAttributeCarrier::TagProperties::canAutomaticSortChilds ( ) const

return true if tag correspond to an element that can sort their childs automatic

Definition at line 706 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_AUTOMATICSORTING.

Referenced by GNEAdditional::addAdditionalChild(), and GNEAdditional::removeAdditionalChild().

◆ canBePlacedOverEdge()

bool GNEAttributeCarrier::TagProperties::canBePlacedOverEdge ( ) const

return true if tag correspond to an element that can be placed over an edge

Definition at line 724 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_PLACEDOVER_EDGE.

Referenced by checkTagIntegrity().

◆ canBePlacedOverEdges()

bool GNEAttributeCarrier::TagProperties::canBePlacedOverEdges ( ) const

return true if tag correspond to an element that can be placed over a list of edges

Definition at line 742 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_PLACEDOVER_EDGES.

Referenced by GNEAdditionalFrame::buildAdditionalCommonAttributes(), and checkTagIntegrity().

◆ canBePlacedOverJunction()

bool GNEAttributeCarrier::TagProperties::canBePlacedOverJunction ( ) const

return true if tag correspond to an element that can be placed over a junction

Definition at line 736 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_PLACEDOVER_JUNCTION.

Referenced by checkTagIntegrity().

◆ canBePlacedOverLane()

bool GNEAttributeCarrier::TagProperties::canBePlacedOverLane ( ) const

return true if tag correspond to an element that can be placed over a lane

Definition at line 730 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_PLACEDOVER_LANE.

Referenced by checkTagIntegrity(), and GNEAdditional::startGeometryMoving().

◆ canBePlacedOverLanes()

bool GNEAttributeCarrier::TagProperties::canBePlacedOverLanes ( ) const

◆ canBePlacedOverView()

bool GNEAttributeCarrier::TagProperties::canBePlacedOverView ( ) const

return true if tag correspond to an element that can be placed over the view

Definition at line 718 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_PLACEDOVER_VIEW.

Referenced by checkTagIntegrity().

◆ canBeReparent()

bool GNEAttributeCarrier::TagProperties::canBeReparent ( ) const

return true if tag correspond to an element that can be reparent

Definition at line 700 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_REPARENT.

◆ canBlockMovement()

bool GNEAttributeCarrier::TagProperties::canBlockMovement ( ) const

return true if tag correspond to an element that can block their movement

Definition at line 639 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_BLOCKMOVEMENT.

Referenced by GNEAdditional::BlockIcon::draw(), and GNEFrame::NeteditAttributes::showNeteditAttributesModul().

◆ canBlockShape()

bool GNEAttributeCarrier::TagProperties::canBlockShape ( ) const

return true if tag correspond to an element that can block their shape

Definition at line 645 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_BLOCKSHAPE.

Referenced by GNEFrame::NeteditAttributes::showNeteditAttributesModul().

◆ canCloseShape()

bool GNEAttributeCarrier::TagProperties::canCloseShape ( ) const

return true if tag correspond to an element that can close their shape

Definition at line 651 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_CLOSESHAPE.

Referenced by GNEFrame::NeteditAttributes::showNeteditAttributesModul().

◆ canMaskStartEndPos()

bool GNEAttributeCarrier::TagProperties::canMaskStartEndPos ( ) const

return true if tag correspond to an element that can mask the attributes "start" and "end" position as attribute "lenght"

Definition at line 754 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_MASKSTARTENDPOS.

Referenced by checkTagIntegrity(), GNEFrame::NeteditAttributes::showNeteditAttributesModul(), and GNEAdditional::startGeometryMoving().

◆ canMaskXYZPositions()

bool GNEAttributeCarrier::TagProperties::canMaskXYZPositions ( ) const

return true if tag correspond to an element that can mask the attributes "X", "Y" and "Z" position as attribute "Position"

Definition at line 760 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_MASKXYZPOSITION.

◆ canWriteChildsSeparate()

bool GNEAttributeCarrier::TagProperties::canWriteChildsSeparate ( ) const

return true if tag correspond to an element that can sort their childs automatic

Definition at line 712 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_WRITECHILDSSEPARATE.

◆ checkTagIntegrity()

◆ end()

std::map< SumoXMLAttr, GNEAttributeCarrier::AttributeProperties >::const_iterator GNEAttributeCarrier::TagProperties::end ( ) const

get end of attribute values (used for iterate)

Definition at line 547 of file GNEAttributeCarrier.cpp.

References myAttributeProperties.

◆ getAttributeProperties()

const GNEAttributeCarrier::AttributeProperties & GNEAttributeCarrier::TagProperties::getAttributeProperties ( SumoXMLAttr  attr) const

get attribute (throw error if doesn't exist)

Definition at line 524 of file GNEAttributeCarrier.cpp.

References myAttributeProperties, and toString().

Referenced by GNENet::replaceInListAttribute(), and GNEInspectorFrame::AttributesEditor::AttributeInput::showAttribute().

◆ getDefaultValue()

const std::string & GNEAttributeCarrier::TagProperties::getDefaultValue ( SumoXMLAttr  attr) const

return the default value of the attribute of an element

Definition at line 457 of file GNEAttributeCarrier.cpp.

References myAttributeProperties, and toString().

◆ getGUIIcon()

GUIIcon GNEAttributeCarrier::TagProperties::getGUIIcon ( ) const

get GUI icon associated to this Tag

Definition at line 559 of file GNEAttributeCarrier.cpp.

References myIcon.

Referenced by GNEAttributeCarrier::getIcon().

◆ getNumberOfAttributes()

int GNEAttributeCarrier::TagProperties::getNumberOfAttributes ( ) const

◆ getParentTag()

SumoXMLTag GNEAttributeCarrier::TagProperties::getParentTag ( ) const

if Tag owns a parent, return parent tag

Definition at line 565 of file GNEAttributeCarrier.cpp.

References hasParent(), and myParentTag.

Referenced by GNEAdditionalFrame::buildAdditionalWithParent(), GNEAdditionalFrame::enableModuls(), and GNEAdditional::GNEAdditional().

◆ getPositionListed()

int GNEAttributeCarrier::TagProperties::getPositionListed ( ) const

get position in list (used in frames for listing tags with certain sort)

Definition at line 469 of file GNEAttributeCarrier.cpp.

References myPositionListed.

◆ getTag()

SumoXMLTag GNEAttributeCarrier::TagProperties::getTag ( ) const

get Tag vinculated with this attribute Property

Definition at line 406 of file GNEAttributeCarrier.cpp.

References myTag.

Referenced by GNEAdditionalHandler::accessCanBeCreated(), GNEAdditionalFrame::addAdditional(), GNENet::additionalExist(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalFrame::buildAdditionalWithParent(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeSecondAdditionalParent(), GNENet::changeShapeID(), GNEAdditionalHandler::checkOverlappingRerouterIntervals(), GNENet::computeEverything(), GNENet::deleteAdditional(), GNEDetectorE2::drawGL(), GNEPolygonFrame::enableModuls(), GNEAdditionalFrame::generateID(), GNEViewNet::getAttributeCarriersInBoundary(), GNENetElement::getHierarchyName(), GNENetElement::getPopUpID(), GNEEdge::getRouteProbeRelativePosition(), GNEAdditional::GNEAdditional(), GNEAdditionalHandler::GNEAdditionalHandler(), GNENet::GNENet(), GNENet::insertAdditional(), GNENet::insertShape(), GNEInspectorFrame::inspectSingleElement(), GNEAdditional::isValidAdditionalID(), GNEAdditional::isValidDetectorID(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEInspectorFrame::OverlappedInspection::onCmdNextElement(), GNEInspectorFrame::OverlappedInspection::onCmdPreviousElement(), GNEFrame::ACAttributeRow::onCmdSetAttribute(), GNEViewNet::onCmdTransformPOI(), GNEViewNet::onLeftBtnPress(), GNEPolygonFrame::processClick(), GNEInspectorFrame::processClick(), GNEDeleteFrame::removeAttributeCarrier(), GNENet::removeShape(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveAdditionalParent(), GNENet::retrieveShapes(), GNEFrame::ItemSelector::setCurrentTypeTag(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditional::sortAdditionalChilds(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), GNENet::updateAdditionalID(), GNEAdditional::writeAdditional(), and GNEChange_Attribute::~GNEChange_Attribute().

◆ getTagStr()

const std::string & GNEAttributeCarrier::TagProperties::getTagStr ( ) const

get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toString(...)

Definition at line 412 of file GNEAttributeCarrier.cpp.

References myTagStr.

Referenced by GNEAdditionalFrame::buildAdditionalWithParent(), GNEAdditionalFrame::generateID(), GNEAttributeCarrier::getTagStr(), GNEFrame::openHelpAttributesDialog(), and GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector().

◆ getTagSynonym()

SumoXMLTag GNEAttributeCarrier::TagProperties::getTagSynonym ( ) const

get tag synonym

Definition at line 575 of file GNEAttributeCarrier.cpp.

References hasTagSynonym(), and myTagSynonym.

Referenced by GNEAdditional::writeAdditional().

◆ hasAttribute()

bool GNEAttributeCarrier::TagProperties::hasAttribute ( SumoXMLAttr  attr) const

◆ hasDialog()

bool GNEAttributeCarrier::TagProperties::hasDialog ( ) const

return true if tag correspond to an element that can be edited using a dialog

Definition at line 681 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_DIALOG.

Referenced by GNEAdditional::getPopUpMenu(), and GNEViewNet::onCmdOpenAdditionalDialog().

◆ hasGenericParameters()

bool GNEAttributeCarrier::TagProperties::hasGenericParameters ( ) const

return true if Tag correspond to an element that supports generic parameters

Definition at line 693 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_NOGENERICPARAMETERS.

Referenced by GNEAdditionalHandler::parseGenericParameter().

◆ hasGEOPosition()

bool GNEAttributeCarrier::TagProperties::hasGEOPosition ( ) const

return true if tag correspond to an element that can use a geo position

Definition at line 657 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_GEOPOSITION.

◆ hasGEOShape()

bool GNEAttributeCarrier::TagProperties::hasGEOShape ( ) const

return true if tag correspond to an element that can use a geo shape

Definition at line 663 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_GEOSHAPE.

◆ hasMinimumNumberOfChilds()

bool GNEAttributeCarrier::TagProperties::hasMinimumNumberOfChilds ( ) const

return true if tag correspond to an element that only have a limited number of childs

Definition at line 687 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_MINIMUMCHILDS.

Referenced by GNEAdditional::writeAdditional().

◆ hasParent()

bool GNEAttributeCarrier::TagProperties::hasParent ( ) const

return true if tag correspond to an element that can had another element as parent

Definition at line 669 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_PARENT.

Referenced by GNEAdditionalFrame::enableModuls(), and getParentTag().

◆ hasTagSynonym()

bool GNEAttributeCarrier::TagProperties::hasTagSynonym ( ) const

return true if tag correspond to an element that will be written in XML with another tag

Definition at line 675 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_SYNONYM.

Referenced by checkTagIntegrity(), getTagSynonym(), and GNEAdditional::writeAdditional().

◆ isAdditional()

bool GNEAttributeCarrier::TagProperties::isAdditional ( ) const

return true if tag correspond to an additional

Definition at line 597 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_ADDITIONAL.

Referenced by checkTagIntegrity(), and GNEFrame::ACHierarchy::showAttributeCarrierChilds().

◆ isAttributeDeprecated()

bool GNEAttributeCarrier::TagProperties::isAttributeDeprecated ( SumoXMLAttr  attr) const

return true if attribute of this tag is deprecated

Definition at line 766 of file GNEAttributeCarrier.cpp.

References myDeprecatedAttributes.

Referenced by addAttribute().

◆ isDetector()

bool GNEAttributeCarrier::TagProperties::isDetector ( ) const

return true if tag correspond to a shape (Only used to group all detectors in the XML)

Definition at line 633 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_DETECTOR.

Referenced by GNENet::saveAdditionalsConfirmed().

◆ isDrawable()

bool GNEAttributeCarrier::TagProperties::isDrawable ( ) const

return true if tag correspond to a drawable element

Definition at line 603 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_DRAWABLE.

Referenced by checkTagIntegrity(), GNENet::deleteAdditional(), and GNENet::insertAdditional().

◆ isNetElement()

bool GNEAttributeCarrier::TagProperties::isNetElement ( ) const

return true if tag correspond to a netElement

Definition at line 591 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_NETELEMENT.

Referenced by checkTagIntegrity().

◆ isSelectable()

bool GNEAttributeCarrier::TagProperties::isSelectable ( ) const

return true if tag correspond to a selectable element

Definition at line 609 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_SELECTABLE.

◆ isShape()

bool GNEAttributeCarrier::TagProperties::isShape ( ) const

return true if tag correspond to a shape

Definition at line 615 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_SHAPE.

Referenced by checkTagIntegrity().

◆ isStoppingPlace()

bool GNEAttributeCarrier::TagProperties::isStoppingPlace ( ) const

return true if tag correspond to a detector (Only used to group all stoppingPlaces in the output XML)

Definition at line 627 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_STOPPINGPLACE.

Referenced by GNENet::saveAdditionalsConfirmed().

◆ isTAZ()

bool GNEAttributeCarrier::TagProperties::isTAZ ( ) const

return true if tag correspond to a TAZ

Definition at line 621 of file GNEAttributeCarrier.cpp.

References myTagProperty, and GNEAttributeCarrier::TAGPROPERTY_TAZ.

Referenced by checkTagIntegrity(), and GNEFrame::ACHierarchy::showAttributeCarrierChilds().

Field Documentation

◆ myAttributeProperties

std::map<SumoXMLAttr, AttributeProperties> GNEAttributeCarrier::TagProperties::myAttributeProperties
private

map with the attribute values vinculated with this Tag

Definition at line 420 of file GNEAttributeCarrier.h.

Referenced by addAttribute(), addDeprecatedAttribute(), begin(), checkTagIntegrity(), end(), getAttributeProperties(), getDefaultValue(), getNumberOfAttributes(), and hasAttribute().

◆ myDeprecatedAttributes

std::vector<SumoXMLAttr> GNEAttributeCarrier::TagProperties::myDeprecatedAttributes
private

List with the deprecated Attributes.

Definition at line 435 of file GNEAttributeCarrier.h.

Referenced by addDeprecatedAttribute(), and isAttributeDeprecated().

◆ myIcon

GUIIcon GNEAttributeCarrier::TagProperties::myIcon
private

icon associated to this Tag

Definition at line 423 of file GNEAttributeCarrier.h.

Referenced by getGUIIcon().

◆ myParentTag

SumoXMLTag GNEAttributeCarrier::TagProperties::myParentTag
private

parent tag

Definition at line 429 of file GNEAttributeCarrier.h.

Referenced by getParentTag().

◆ myPositionListed

int GNEAttributeCarrier::TagProperties::myPositionListed
private

listed position

Definition at line 426 of file GNEAttributeCarrier.h.

Referenced by getPositionListed().

◆ myTag

SumoXMLTag GNEAttributeCarrier::TagProperties::myTag
private

Sumo XML Tag vinculated wit this tag Property.

Definition at line 411 of file GNEAttributeCarrier.h.

Referenced by getTag().

◆ myTagProperty

◆ myTagStr

std::string GNEAttributeCarrier::TagProperties::myTagStr
private

Sumo XML Tag vinculated wit this tag Property in String format.

Definition at line 414 of file GNEAttributeCarrier.h.

Referenced by getTagStr().

◆ myTagSynonym

SumoXMLTag GNEAttributeCarrier::TagProperties::myTagSynonym
private

Tag written in XML (If is SUMO_TAG_NOTHING), original Tag name will be written)

Definition at line 432 of file GNEAttributeCarrier.h.

Referenced by checkTagIntegrity(), and getTagSynonym().


The documentation for this class was generated from the following files: