Eclipse SUMO - Simulation of Urban MObility
NIVissimSingleTypeParser_Routenentscheidungsdefinition Class Reference

#include <NIVissimSingleTypeParser_Routenentscheidungsdefinition.h>

Inheritance diagram for NIVissimSingleTypeParser_Routenentscheidungsdefinition:
[legend]
Collaboration diagram for NIVissimSingleTypeParser_Routenentscheidungsdefinition:
[legend]

Public Member Functions

 NIVissimSingleTypeParser_Routenentscheidungsdefinition (NIImporter_Vissim &parent)
 Constructor. More...
 
bool parse (std::istream &from)
 Parses the data type from the given stream. More...
 
 ~NIVissimSingleTypeParser_Routenentscheidungsdefinition ()
 Destructor. More...
 

Protected Member Functions

Position getPosition (std::istream &from)
 returns the 2d-position saved as next within the stream More...
 
std::string myRead (std::istream &from)
 reads from the stream and returns the lower case version of the read value More...
 
std::string overrideOptionalLabel (std::istream &from, const std::string &tag="")
 overrides the optional label definition; returns the next tag as done by readEndSecure More...
 
std::vector< int > parseAssignedVehicleTypes (std::istream &from, const std::string &next)
 parses a listof vehicle types assigned to the current data field One should remeber, that -1 means "all" vehicle types More...
 
std::string readEndSecure (std::istream &from, const std::string &excl="")
 as myRead, but returns "DATAEND" when the current field has ended More...
 
std::string readEndSecure (std::istream &from, const std::vector< std::string > &excl)
 
NIVissimExtendedEdgePoint readExtEdgePointDef (std::istream &from)
 
std::string readName (std::istream &from)
 Reads the structures name We cannot use the "<<" operator, as names may contain more than one word which are joined using '"'. More...
 
void readUntil (std::istream &from, const std::string &name)
 Reads from the stream until the keywor occurs. More...
 
bool skipOverreading (std::istream &from, const std::string &name="")
 Overreads the named parameter (if) given and skips the rest until "DATAEND". More...
 

Private Attributes

NIImporter_VissimmyVissimParent
 

Detailed Description

Constructor & Destructor Documentation

◆ NIVissimSingleTypeParser_Routenentscheidungsdefinition()

NIVissimSingleTypeParser_Routenentscheidungsdefinition::NIVissimSingleTypeParser_Routenentscheidungsdefinition ( NIImporter_Vissim parent)

Constructor.

Definition at line 32 of file NIVissimSingleTypeParser_Routenentscheidungsdefinition.cpp.

◆ ~NIVissimSingleTypeParser_Routenentscheidungsdefinition()

NIVissimSingleTypeParser_Routenentscheidungsdefinition::~NIVissimSingleTypeParser_Routenentscheidungsdefinition ( )

Destructor.

Definition at line 36 of file NIVissimSingleTypeParser_Routenentscheidungsdefinition.cpp.

Member Function Documentation

◆ getPosition()

Position NIImporter_Vissim::VissimSingleTypeParser::getPosition ( std::istream &  from)
protectedinherited

returns the 2d-position saved as next within the stream

Definition at line 747 of file NIImporter_Vissim.cpp.

Referenced by NIVissimSingleTypeParser_Knotendefinition::parse(), and NIVissimSingleTypeParser_Streckendefinition::parse().

Here is the caller graph for this function:

◆ myRead()

std::string NIImporter_Vissim::VissimSingleTypeParser::myRead ( std::istream &  from)
protectedinherited

reads from the stream and returns the lower case version of the read value

Definition at line 669 of file NIImporter_Vissim.cpp.

References StringUtils::to_lower_case().

Referenced by NIVissimSingleTypeParser_Auswertungsdefinition::parse(), NIVissimSingleTypeParser_Detektordefinition::parse(), NIVissimSingleTypeParser_Fahrzeugklassendefinition::parse(), NIVissimSingleTypeParser_Fahrzeugtypdefinition::parse(), NIVissimSingleTypeParser_Fensterdefinition::parse(), NIVissimSingleTypeParser_Haltestellendefinition::parse(), NIVissimSingleTypeParser_Knotendefinition::parse(), NIVissimSingleTypeParser_Langsamfahrbereichdefinition::parse(), NIVissimSingleTypeParser_Lichtsignalanlagendefinition::parse(), NIVissimSingleTypeParser_Parkplatzdefinition::parse(), NIVissimSingleTypeParser_Querschnittsmessungsdefinition::parse(), NIVissimSingleTypeParser_Querverkehrsstoerungsdefinition::parse(), NIVissimSingleTypeParser_Reisezeitmessungsdefinition::parse(), parse(), NIVissimSingleTypeParser_Signalgeberdefinition::parse(), NIVissimSingleTypeParser_Signalgruppendefinition::parse(), NIVissimSingleTypeParser_Streckendefinition::parse(), NIVissimSingleTypeParser_Verbindungsdefinition::parse(), NIVissimSingleTypeParser_Verkehrszusammensetzungsdefinition::parse(), NIVissimSingleTypeParser_Verlustzeitmessungsdefinition::parse(), NIVissimSingleTypeParser_VWunschentscheidungsdefinition::parse(), NIVissimSingleTypeParser_Zuflussdefinition::parse(), NIVissimSingleTypeParser_Zusammensetzungsdefinition::parse(), NIVissimSingleTypeParser_Signalgruppendefinition::parseFixedTime(), NIVissimSingleTypeParser_Querverkehrsstoerungsdefinition::parseNumbered(), NIVissimSingleTypeParser_Querverkehrsstoerungsdefinition::parsePositionDescribed(), NIVissimSingleTypeParser_Lichtsignalanlagendefinition::parseRestActuated(), and NIVissimSingleTypeParser_Signalgruppendefinition::parseVAS().

Here is the caller graph for this function:

◆ overrideOptionalLabel()

std::string NIImporter_Vissim::VissimSingleTypeParser::overrideOptionalLabel ( std::istream &  from,
const std::string &  tag = "" 
)
protectedinherited

overrides the optional label definition; returns the next tag as done by readEndSecure

Definition at line 726 of file NIImporter_Vissim.cpp.

Referenced by NIVissimSingleTypeParser_Knotendefinition::parse(), NIVissimSingleTypeParser_Signalgeberdefinition::parse(), NIVissimSingleTypeParser_Streckendefinition::parse(), NIVissimSingleTypeParser_Verbindungsdefinition::parse(), NIVissimSingleTypeParser_VWunschentscheidungsdefinition::parse(), and NIVissimSingleTypeParser_Zuflussdefinition::parse().

Here is the caller graph for this function:

◆ parse()

bool NIVissimSingleTypeParser_Routenentscheidungsdefinition::parse ( std::istream &  from)
virtual

◆ parseAssignedVehicleTypes()

std::vector< int > NIImporter_Vissim::VissimSingleTypeParser::parseAssignedVehicleTypes ( std::istream &  from,
const std::string &  next 
)
protectedinherited

parses a listof vehicle types assigned to the current data field One should remeber, that -1 means "all" vehicle types

Definition at line 756 of file NIImporter_Vissim.cpp.

References StringUtils::toInt().

Referenced by NIVissimSingleTypeParser_Signalgeberdefinition::parse().

Here is the caller graph for this function:

◆ readEndSecure() [1/2]

std::string NIImporter_Vissim::VissimSingleTypeParser::readEndSecure ( std::istream &  from,
const std::string &  excl = "" 
)
protectedinherited

as myRead, but returns "DATAEND" when the current field has ended

Definition at line 678 of file NIImporter_Vissim.cpp.

References StringUtils::to_lower_case().

Referenced by NIVissimSingleTypeParser_Auswertungsdefinition::parse(), NIVissimSingleTypeParser_Detektordefinition::parse(), NIVissimSingleTypeParser_DynUml::parse(), NIVissimSingleTypeParser_Fahrzeugklassendefinition::parse(), NIVissimSingleTypeParser_Fahrzeugtypdefinition::parse(), NIVissimSingleTypeParser_Geschwindigkeitsverteilungsdefinition::parse(), NIVissimSingleTypeParser_Haltestellendefinition::parse(), NIVissimSingleTypeParser_Kantensperrung::parse(), NIVissimSingleTypeParser_Knotendefinition::parse(), NIVissimSingleTypeParser_Laengenverteilungsdefinition::parse(), NIVissimSingleTypeParser_Querschnittsmessungsdefinition::parse(), NIVissimSingleTypeParser_Reisezeitmessungsdefinition::parse(), parse(), NIVissimSingleTypeParser_Stopschilddefinition::parse(), NIVissimSingleTypeParser_Streckendefinition::parse(), NIVissimSingleTypeParser_Verbindungsdefinition::parse(), NIVissimSingleTypeParser_Verkehrszusammensetzungsdefinition::parse(), NIVissimSingleTypeParser_Verlustzeitmessungsdefinition::parse(), NIVissimSingleTypeParser_VWunschentscheidungsdefinition::parse(), NIVissimSingleTypeParser_Zeitenverteilungsdefinition::parse(), NIVissimSingleTypeParser_Zuflussdefinition::parse(), NIVissimSingleTypeParser_Zusammensetzungsdefinition::parse(), NIVissimSingleTypeParser_Lichtsignalanlagendefinition::parseFixedTime(), NIVissimSingleTypeParser_Querverkehrsstoerungsdefinition::parseNumbered(), NIVissimSingleTypeParser_Querverkehrsstoerungsdefinition::parsePos(), NIVissimSingleTypeParser_Querverkehrsstoerungsdefinition::parsePositionDescribed(), NIVissimSingleTypeParser_Lichtsignalanlagendefinition::parseRestActuated(), and NIVissimSingleTypeParser_Lichtsignalanlagendefinition::parseVAS().

Here is the caller graph for this function:

◆ readEndSecure() [2/2]

std::string NIImporter_Vissim::VissimSingleTypeParser::readEndSecure ( std::istream &  from,
const std::vector< std::string > &  excl 
)
protectedinherited

Definition at line 696 of file NIImporter_Vissim.cpp.

References StringUtils::to_lower_case().

◆ readExtEdgePointDef()

NIVissimExtendedEdgePoint NIImporter_Vissim::VissimSingleTypeParser::readExtEdgePointDef ( std::istream &  from)
protectedinherited

Definition at line 773 of file NIImporter_Vissim.cpp.

References StringUtils::toInt().

Referenced by NIVissimSingleTypeParser_Verbindungsdefinition::parse().

Here is the caller graph for this function:

◆ readName()

◆ readUntil()

void NIImporter_Vissim::VissimSingleTypeParser::readUntil ( std::istream &  from,
const std::string &  name 
)
protectedinherited

◆ skipOverreading()

bool NIImporter_Vissim::VissimSingleTypeParser::skipOverreading ( std::istream &  from,
const std::string &  name = "" 
)
protectedinherited

Overreads the named parameter (if) given and skips the rest until "DATAEND".

Definition at line 821 of file NIImporter_Vissim.cpp.

Referenced by NIVissimSingleTypeParser_Messungsdefinition::parse(), NIVissimSingleTypeParser_Richtungsentscheidungsdefinition::parse(), and NIVissimSingleTypeParser_Stauzaehlerdefinition::parse().

Here is the caller graph for this function:

Field Documentation

◆ myVissimParent

NIImporter_Vissim& NIImporter_Vissim::VissimSingleTypeParser::myVissimParent
privateinherited

Definition at line 535 of file NIImporter_Vissim.h.


The documentation for this class was generated from the following files: