19 #ifndef SUMOSAXAttributesImpl_Binary_h 20 #define SUMOSAXAttributesImpl_Binary_h 57 const std::string& objectType,
128 long long int getLong(
int id)
const;
158 const std::string& def)
const;
200 double getFloat(
const std::string&
id)
const;
213 const std::string& def)
const;
276 std::string
getName(
int attr)
const;
std::vector< std::string > getStringVector(int attr) const
Tries to read given attribute assuming it is a string vector.
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.
std::map< int, double > myFloatValues
Map of attribute ids to floats.
SumoXMLEdgeFunc getEdgeFunc(bool &ok) const
Returns the value of the named attribute.
bool hasAttribute(int id) const
Returns the information whether the named (by its enum-value) attribute is within the current list...
SUMOSAXAttributes * clone() const
return a new deep-copy attributes object
RightOfWay getRightOfWay(bool &ok) const
returns rightOfWay method
std::map< int, std::string > myStringValues
Map of attribute ids to string.
RightOfWay
algorithms for computing right of way
A class that stores a 2D geometrical boundary.
std::string getString(int id) 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.
RGBColor getColor() const
Returns the value of the named attribute.
int getInt(int id) const
Returns the int-value of the named (by its enum-value) attribute.
double getFloat(int id) const
Returns the double-value of the named (by its enum-value) attribute.
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(const std::map< int, std::string > &predefinedTagsMML, const std::string &objectType, BinaryInputDevice *in, const char version)
Constructor.
SUMOSAXAttributesImpl_Binary & operator=(const SUMOSAXAttributesImpl_Binary &src)
Invalidated assignment operator.
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
bool getBool(int id) const
Returns the bool-value of the named (by its enum-value) attribute.
virtual ~SUMOSAXAttributesImpl_Binary()
Destructor.
std::string getName(int attr) const
Converts the given attribute id into a man readable string.
Boundary getBoundary(int attr) const
Tries to read given attribute assuming it is a Boundary.
SumoXMLNodeType getNodeType(bool &ok) const
Returns the value of the named attribute.
void serialize(std::ostream &os) const
Prints all attribute names and values into the given stream.
std::string getStringSecure(int id, const std::string &def) const
Returns the string-value of the named (by its enum-value) attribute.