26 #include <xercesc/sax2/Attributes.hpp>
51 const std::vector<std::string>& predefinedTagsMML,
52 const std::string& objectType);
116 long long int getLong(
int id)
const;
181 double getFloat(
const std::string&
id)
const;
193 const std::string& def)
const;
254 std::string
getName(
int attr)
const;
FringeType
classifying boundary nodes
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
RightOfWay
algorithms for computing right of way
A class that stores a 2D geometrical boundary.
A point in 2D or 3D with translation and scaling methods.
Encapsulated SAX-Attributes.
Encapsulated Xerces-SAX-attributes.
Position getPosition(int attr) const
Tries to read given attribute assuming it is a Position.
std::string getString(int id) const
Returns the string-value of the named (by its enum-value) attribute.
std::string getName(int attr) const
Converts the given attribute id into a man readable string.
RightOfWay getRightOfWay(bool &ok) const
returns rightOfWay method
~SUMOSAXAttributesImpl_Cached()
Destructor.
PositionVector getShape(int attr) const
Tries to read given attribute assuming it is a PositionVector.
SumoXMLEdgeFunc getEdgeFunc(bool &ok) const
Returns the value of the named attribute.
SUMOSAXAttributesImpl_Cached & operator=(const SUMOSAXAttributesImpl_Cached &src)=delete
Invalidated assignment operator.
bool getBool(int id) const
Returns the bool-value of the named (by its enum-value) attribute.
long long int getLong(int id) const
Returns the long-value of the named (by its enum-value) attribute.
FringeType getFringeType(bool &ok) const
returns fringe type
Boundary getBoundary(int attr) const
Tries to read given attribute assuming it is a Boundary.
std::string getStringSecure(int id, const std::string &def) const
Returns the string-value of the named (by its enum-value) attribute.
std::map< std::string, std::string > myAttrs
The encapsulated attributes.
SUMOSAXAttributesImpl_Cached(const std::map< std::string, std::string > &attrs, const std::vector< std::string > &predefinedTagsMML, const std::string &objectType)
Constructor.
SUMOSAXAttributesImpl_Cached(const SUMOSAXAttributesImpl_Cached &src)=delete
Invalidated copy constructor.
SumoXMLNodeType getNodeType(bool &ok) const
Returns the value of the named attribute.
const std::string & getAttributeValueSecure(int id) const
Returns Xerces-value of the named attribute.
int getInt(int id) const
Returns the int-value of the named (by its enum-value) attribute.
void serialize(std::ostream &os) const
Prints all attribute names and values into the given stream.
std::vector< std::string > getAttributeNames() const
Retrieves all attribute names.
RGBColor getColor() const
Returns the value of the named attribute.
SUMOSAXAttributes * clone() const
return a new deep-copy attributes object
const std::vector< std::string > & myPredefinedTagsMML
Map of attribute ids to their (readable) string-representation.
double getFloat(int id) const
Returns the double-value of the named (by its enum-value) attribute.
bool hasAttribute(int id) const
Returns the information whether the named (by its enum-value) attribute is within the current list.