 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef SUMOSAXAttributesImpl_Cached_h
18 #define SUMOSAXAttributesImpl_Cached_h
29 #include <xercesc/sax2/Attributes.hpp>
53 const std::map<int, std::string>& predefinedTagsMML,
54 const std::string& objectType);
63 const std::map<int, std::string>& predefinedTagsMML,
64 const std::string& objectType);
128 long long int getLong(
int id)
const;
193 double getFloat(
const std::string&
id)
const;
205 const std::string& def)
const;
260 std::string
getName(
int attr)
const;
FringeType
algorithms for computing right of way
FringeType getFringeType(bool &ok) const
returns fringe type
Boundary getBoundary(int attr) const
Tries to read given attribute assuming it is a Boundary.
double getFloat(int id) const
Returns the double-value of the named (by its enum-value) attribute.
SumoXMLNodeType getNodeType(bool &ok) const
Returns the value of the named attribute.
std::string getStringSecure(int id, const std::string &def) const
Returns the string-value of the named (by its enum-value) attribute.
std::string getString(int id) const
Returns the string-value of the named (by its enum-value) attribute.
bool getBool(int id) const
Returns the bool-value of the named (by its enum-value) attribute.
std::map< std::string, std::string > myAttrs
The encapsulated attributes.
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
bool hasAttribute(int id) const
Returns the information whether the named (by its enum-value) attribute is within the current list.
SUMOSAXAttributesImpl_Cached(const std::map< std::string, std::string > &attrs, const std::map< int, std::string > &predefinedTagsMML, const std::string &objectType)
Constructor.
SumoXMLEdgeFunc getEdgeFunc(bool &ok) const
Returns the value of the named attribute.
SUMOSAXAttributesImpl_Cached & operator=(const SUMOSAXAttributesImpl_Cached &src)=delete
Invalidated assignment operator.
Encapsulated Xerces-SAX-attributes.
SUMOSAXAttributes * clone() const
return a new deep-copy attributes object
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
RightOfWay getRightOfWay(bool &ok) const
returns rightOfWay method
A class that stores a 2D geometrical boundary.
int getInt(int id) const
Returns the int-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.
std::string getName(int attr) const
Converts the given attribute id into a man readable string.
const std::string & getAttributeValueSecure(int id) const
Returns Xerces-value of the named attribute.
RightOfWay
algorithms for computing right of way
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.
~SUMOSAXAttributesImpl_Cached()
Destructor.
PositionVector getShape(int attr) const
Tries to read given attribute assuming it is a PositionVector.
RGBColor getColor() const
Returns the value of the named attribute.
const std::map< int, std::string > & myPredefinedTagsMML
Map of attribute ids to their (readable) string-representation.
Encapsulated SAX-Attributes.