36 #include "../NIImporter_Vissim.h"
37 #include "../tempstructs/NIVissimVehTypeClass.h"
40 #ifdef CHECK_MEMORY_LEAKS
42 #endif // CHECK_MEMORY_LEAKS
51 myColorMap(colorMap) {}
68 std::string colorName =
myRead(from);
70 NIImporter_Vissim::ColorMap::iterator i =
myColorMap.find(colorName);
82 if (r < 0 || r > 255 || g < 0 || g > 255 || b < 0 || b > 255) {
85 color =
RGBColor((
unsigned char)r, (
unsigned char)g, (
unsigned char)b, 255);
89 if (tag ==
"ANM_ID") {
93 std::vector<int> types;
98 }
while (tag !=
"DATAEND");
static bool dictionary(int id, const std::string &name, const RGBColor &color, std::vector< int > &types)
bool parse(std::istream &from)
Parses the data type from the given stream.
std::string myRead(std::istream &from)
reads from the stream and returns the lower case version of the read value
std::string readEndSecure(std::istream &from, const std::string &excl="")
as myRead, but returns "DATAEND" when the current field has ended
Importer for networks stored in Vissim format.
NIVissimSingleTypeParser_Fahrzeugklassendefinition(NIImporter_Vissim &parent, NIImporter_Vissim::ColorMap &colorMap)
Constructor.
std::string readName(std::istream &from)
Reads the structures name We cannot use the "<<" operator, as names may contain more than one word wh...
std::map< std::string, RGBColor > ColorMap
definition of a map from color names to color definitions
static int _2int(const E *const data)
~NIVissimSingleTypeParser_Fahrzeugklassendefinition()
Destructor.
NIImporter_Vissim::ColorMap & myColorMap
color definitions