54 if (tag ==
"mittelwert") {
55 double mean, deviation;
63 if (tag !=
"DATAEND") {
69 }
while (tag !=
"DATAEND");
static bool dictionary(const std::string &type, const std::string &id, Distribution *d)
Adds a distribution of the given type and name to the container.
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.
bool parse(std::istream &from)
Parses the data type from the given stream.
NIVissimSingleTypeParser_Zeitenverteilungsdefinition(NIImporter_Vissim &parent)
Constructor.
~NIVissimSingleTypeParser_Zeitenverteilungsdefinition()
Destructor.
bool add(T val, double prob, bool checkDuplicates=true)
Adds a value with an assigned probability to the distribution.
static double toDouble(const std::string &sData)
converts a string into the double value described by it by calling the char-type converter