22 #ifndef SUMOSAXAttributesImpl_Binary_h
23 #define SUMOSAXAttributesImpl_Binary_h
64 const std::string& objectType,
136 long long int getLong(
int id)
const;
166 const std::string& def)
const;
221 const std::string& def)
const;
282 std::string
getName(
int attr)
const;
void serialize(std::ostream &os) const
Prints all attribute names and values into the given stream.
PositionVector getShape(int attr) const
Tries to read given attribute assuming it is a PositionVector.
long long int getLong(int id) const
Returns the long-value of the named (by its enum-value) attribute.
std::map< int, char > myCharValues
Map of attribute ids to char.
RGBColor getColor() const
Returns the value of the named attribute.
SumoXMLEdgeFunc getEdgeFunc(bool &ok) const
Returns the value of the named attribute.
std::string getName(int attr) const
Converts the given attribute id into a man readable string.
std::map< int, std::string > myStringValues
Map of attribute ids to string.
int getInt(int id) const
Returns the int-value of the named (by its enum-value) attribute.
A class that stores a 2D geometrical boundary.
SUMOReal getFloat(int id) const
Returns the SUMOReal-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.
Encapsulated SAX-Attributes.
const std::map< int, std::string > & myAttrIds
Map of attribute ids to names.
std::vector< std::string > getStringVector(int attr) const
Tries to read given attribute assuming it is a string vector.
std::map< int, SUMOReal > myFloatValues
Map of attribute ids to floats.
SumoXMLNodeType getNodeType(bool &ok) const
Returns the value of the named attribute.
SUMOSAXAttributesImpl_Binary(const std::map< int, std::string > &predefinedTagsMML, const std::string &objectType, BinaryInputDevice *in)
Constructor.
Encapsulated Xerces-SAX-attributes.
std::map< int, int > myIntValues
Map of attribute ids to integers.
std::map< int, PositionVector > myPositionVectors
Map of attribute ids to string.
std::set< int > myAttrs
the attributes which are set
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
SUMOSAXAttributesImpl_Binary & operator=(const SUMOSAXAttributesImpl_Binary &src)
Invalidated assignment operator.
bool hasAttribute(int id) const
Returns the information whether the named (by its enum-value) attribute is within the current list...
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
virtual ~SUMOSAXAttributesImpl_Binary()
Destructor.
bool getBool(int id) const
Returns the bool-value of the named (by its enum-value) attribute.
Boundary getBoundary(int attr) const
Tries to read given attribute assuming it is a Boundary.
std::string getString(int id) const
Returns the string-value of the named (by its enum-value) attribute.