Eclipse SUMO - Simulation of Urban MObility
|
A reader of pois and polygons stored in VISUM-format. More...
#include <PCLoaderVisum.h>
Static Public Member Functions | |
static void | loadIfSet (OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm) |
Loads pois/polygons assumed to be stored using VISUM-format. | |
Protected Types | |
enum | VISUM_KEY { VISUM_SYS , VISUM_LINKTYPE , VISUM_NODE , VISUM_DISTRICT , VISUM_POINT , VISUM_LINK , VISUM_V0 , VISUM_TYPES , VISUM_RANK , VISUM_CAPACITY , VISUM_XCOORD , VISUM_YCOORD , VISUM_FROMNODE , VISUM_TONODE , VISUM_TYPE , VISUM_TYP , VISUM_ID , VISUM_CODE , VISUM_DISTRICT_CONNECTION , VISUM_SOURCE_DISTRICT , VISUM_FROMNODENO , VISUM_DIRECTION , VISUM_SURFACEID , VISUM_FACEID , VISUM_FROMPOINTID , VISUM_TOPOINTID , VISUM_EDGE , VISUM_VIANODENO , VISUM_NUMLANES , VISUM_TURN , VISUM_INDEX , VISUM_LINKPOLY , VISUM_SURFACEITEM , VISUM_FACEITEM , VISUM_EDGEID , VISUM_ORIGIN , VISUM_DESTINATION , VISUM_CATID , VISUM_EDGEITEM , VISUM_POICATEGORY , VISUM_NO } |
Static Protected Member Functions | |
static void | load (const std::string &file, OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm) |
Parses pois/polys stored within the given file. | |
static void | loadLanguage (const std::string &file) |
Static Protected Attributes | |
static StringBijection< VISUM_KEY > | KEYS |
link directions | |
static StringBijection< VISUM_KEY >::Entry | KEYS_DE [] |
Strings for the keywords. | |
A reader of pois and polygons stored in VISUM-format.
Definition at line 42 of file PCLoaderVisum.h.
|
protected |
Definition at line 75 of file PCLoaderVisum.h.
|
staticprotected |
Parses pois/polys stored within the given file.
[in] | oc | The options container to get further options from |
[in] | toFill | The poly/pois container to add loaded polys/pois to |
[in] | tm | The type map to use for setting values of loaded polys/pois |
ProcessError | if something fails |
Definition at line 125 of file PCLoaderVisum.cpp.
References PCPolyContainer::add(), PCTypeMap::TypeDef::color, PCTypeMap::TypeDef::discard, PCTypeMap::get(), NamedObjectCont< T >::get(), NamedColumnsParser::get(), OptionsCont::getBool(), OptionsCont::getFloat(), ShapeContainer::getPOIs(), ShapeContainer::getPolygons(), GeoConvHelper::getProcessing(), OptionsCont::getString(), StringBijection< T >::getString(), PCTypeMap::has(), LineReader::hasMore(), PCTypeMap::TypeDef::icon, PCTypeMap::TypeDef::id, KEYS, PCTypeMap::TypeDef::layer, StringTokenizer::next(), RGBColor::parseColor(), NamedColumnsParser::parseLine(), PCTypeMap::TypeDef::prefix, LineReader::readLine(), LineReader::reinit(), NamedColumnsParser::reinit(), TL, StringUtils::toDouble(), StringUtils::toInt(), StringUtils::toLong(), toString(), VISUM_CATID, VISUM_DIRECTION, VISUM_DISTRICT, VISUM_EDGE, VISUM_EDGEID, VISUM_EDGEITEM, VISUM_FACEID, VISUM_FACEITEM, VISUM_FROMPOINTID, VISUM_ID, VISUM_INDEX, VISUM_NO, VISUM_POICATEGORY, VISUM_POINT, VISUM_SURFACEID, VISUM_SURFACEITEM, VISUM_TOPOINTID, VISUM_XCOORD, VISUM_YCOORD, WRITE_WARNINGF, and GeoConvHelper::x2cartesian().
Referenced by loadIfSet().
|
static |
Loads pois/polygons assumed to be stored using VISUM-format.
If the option "visum-files" is set within the given options container, the files stored herein are parsed using "load", assuming this option contains file paths to files containing pois and polygons stored in VISUM ".net"-format.
[in] | oc | The options container to get further options from |
[in] | toFill | The poly/pois container to add loaded polys/pois to |
[in] | tm | The type map to use for setting values of loaded polys/pois |
ProcessError | if something fails |
Definition at line 101 of file PCLoaderVisum.cpp.
References OptionsCont::getString(), OptionsCont::getStringVector(), FileHelpers::isReadable(), OptionsCont::isSet(), load(), loadLanguage(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, and TLF.
Referenced by main().
|
staticprotected |
Definition at line 432 of file PCLoaderVisum.cpp.
References StringBijection< T >::get(), StringBijection< T >::hasString(), StringBijection< T >::insert(), KEYS, StringBijection< T >::remove(), and TLF.
Referenced by loadIfSet().
|
staticprotected |
link directions
Definition at line 124 of file PCLoaderVisum.h.
Referenced by load(), and loadLanguage().
|
staticprotected |
Strings for the keywords.
Definition at line 48 of file PCLoaderVisum.h.