 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef SUMOSAXAttributesImpl_Binary_h
19 #define SUMOSAXAttributesImpl_Binary_h
56 const std::string& objectType,
127 long long int getLong(
int id)
const;
157 const std::string& def)
const;
199 double getFloat(
const std::string&
id)
const;
212 const std::string& def)
const;
270 std::string
getName(
int attr)
const;
FringeType
algorithms for computing right of way
void serialize(std::ostream &os) const
Prints all attribute names and values into the given stream.
std::map< int, int > myIntValues
Map of attribute ids to integers.
double getFloat(int id) const
Returns the double-value of the named (by its enum-value) attribute.
std::map< int, char > myCharValues
Map of attribute ids to char.
std::map< int, double > myFloatValues
Map of attribute ids to floats.
virtual ~SUMOSAXAttributesImpl_Binary()
Destructor.
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
std::string getString(int id) const
Returns the string-value of the named (by its enum-value) attribute.
RGBColor getColor() const
Returns the value of the named attribute.
std::map< int, PositionVector > myPositionVectors
Map of attribute ids to string.
std::set< int > myAttrs
the attributes which are set
PositionVector getShape(int attr) const
Tries to read given attribute assuming it is a PositionVector.
RightOfWay getRightOfWay(bool &ok) const
returns rightOfWay method
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
Encapsulated Xerces-SAX-attributes.
SUMOSAXAttributes * clone() const
return a new deep-copy attributes object
A class that stores a 2D geometrical boundary.
long long int getLong(int id) const
Returns the long-value of the named (by its enum-value) attribute.
Boundary getBoundary(int attr) const
Tries to read given attribute assuming it is a Boundary.
const std::map< int, std::string > & myAttrIds
Map of attribute ids to names.
bool getBool(int id) const
Returns the bool-value of the named (by its enum-value) attribute.
int getInt(int id) const
Returns the int-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.
FringeType getFringeType(bool &ok) const
returns fringe type
RightOfWay
algorithms for computing right of way
SumoXMLNodeType getNodeType(bool &ok) const
Returns the value of the named attribute.
SumoXMLEdgeFunc getEdgeFunc(bool &ok) const
Returns the value of the named attribute.
SUMOSAXAttributesImpl_Binary & operator=(const SUMOSAXAttributesImpl_Binary &src)
Invalidated assignment operator.
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.
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.
SUMOSAXAttributesImpl_Binary(const std::map< int, std::string > &predefinedTagsMML, const std::string &objectType, BinaryInputDevice *in, const char version)
Constructor.
std::vector< std::string > getAttributeNames() const
Retrieves all attribute names.