28 #include <xercesc/sax2/Attributes.hpp>
52 const std::vector<XMLCh*>& predefinedTags,
53 const std::vector<std::string>& predefinedTagsMML,
54 const std::string& objectType);
125 long long int getLong(
int id)
const;
155 const std::string& def)
const;
197 double getFloat(
const std::string&
id)
const;
210 const std::string& def)
const;
273 std::string
getName(
int attr)
const;
301 const XERCES_CPP_NAMESPACE::Attributes&
myAttrs;
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.
const XMLCh * getAttributeValueSecure(int id) const
Returns Xerces-value of the named attribute.
std::vector< XMLCh * > AttrMap
Definition of a map of attribute ids to their xerces-representation.
SUMOSAXAttributesImpl_Xerces & operator=(const SUMOSAXAttributesImpl_Xerces &src)
Invalidated assignment operator.
SumoXMLEdgeFunc getEdgeFunc(bool &ok) const
Returns the value of the named attribute.
RightOfWay getRightOfWay(bool &ok) const
returns rightOfWay method
const std::vector< std::string > & myPredefinedTagsMML
Map of attribute ids to their (readable) string-representation.
std::string getName(int attr) const
Converts the given attribute id into a man readable string.
std::vector< std::string > getAttributeNames() const
Retrieves all attribute names.
SumoXMLNodeType getNodeType(bool &ok) const
Returns the value of the named attribute.
const XERCES_CPP_NAMESPACE::Attributes & myAttrs
The encapsulated attributes.
bool getBool(int id) const
Returns the bool-value of the named (by its enum-value) attribute.
RGBColor getColor() const
Returns the value of the named 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
SUMOSAXAttributesImpl_Xerces(const XERCES_CPP_NAMESPACE::Attributes &attrs, const std::vector< XMLCh * > &predefinedTags, const std::vector< std::string > &predefinedTagsMML, const std::string &objectType)
Constructor.
Position getPosition(int attr) const
Tries to read given attribute assuming it is a Position.
double getFloat(int id) const
Returns the double-value of the named (by its enum-value) attribute.
PositionVector getShape(int attr) const
Tries to read given attribute assuming it is a PositionVector.
std::string getString(int id) const
Returns the string-value of the named (by its enum-value) attribute.
const AttrMap & myPredefinedTags
Map of attribute ids to their xerces-representation.
virtual ~SUMOSAXAttributesImpl_Xerces()
Destructor.
void serialize(std::ostream &os) const
Prints all attribute names and values into the given stream.
int getInt(int id) const
Returns the int-value of the named (by its enum-value) attribute.
std::string getStringSecure(int id, const std::string &def) const
Returns the string-value of the named (by its enum-value) attribute.
Boundary getBoundary(int attr) const
Tries to read given attribute assuming it is a Boundary.
SUMOSAXAttributesImpl_Xerces(const SUMOSAXAttributesImpl_Xerces &src)
Invalidated copy constructor.
SUMOSAXAttributes * clone() const
return a new deep-copy attributes object
bool hasAttribute(int id) const
Returns the information whether the named (by its enum-value) attribute is within the current list.