SUMO - Simulation of Urban MObility

PCLoaderVisum Class Reference

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) throw (ProcessError)
 Loads pois/polygons assumed to be stored using VISUM-format.

Static Protected Member Functions

static void load (const std::string &file, OptionsCont &oc, PCPolyContainer &toFill, PCTypeMap &tm) throw (ProcessError)
 Parses pois/polys stored within the given file.

Detailed Description

A reader of pois and polygons stored in VISUM-format.

Definition at line 50 of file PCLoaderVisum.h.


Member Function Documentation

void PCLoaderVisum::load ( const std::string &  file,
OptionsCont &  oc,
PCPolyContainer &  toFill,
PCTypeMap &  tm 
) throw (ProcessError) [static, protected]

Parses pois/polys stored within the given file.

Parameters:
[in]ocThe options container to get further options from
[in]toFillThe poly/pois container to add loaded polys/pois to
[in]tmThe type map to use for setting values of loaded polys/pois
Exceptions:
ProcessErrorif something fails

hmmmm - assume it's sorted...

Definition at line 82 of file PCLoaderVisum.cpp.

References TplConvert< E >::_2int(), TplConvert< E >::_2long(), TplConvert< E >::_2SUMOReal(), PositionVector::clear(), PCTypeMap::TypeDef::color, PCTypeMap::TypeDef::discard, NamedColumnsParser::get(), GeoConvHelper::getDefaultInstance(), LineReader::hasMore(), PCTypeMap::TypeDef::id, PCTypeMap::TypeDef::layer, StringTokenizer::next(), RGBColor::parseColor(), NamedColumnsParser::parseLine(), PCTypeMap::TypeDef::prefix, PositionVector::push_back(), LineReader::readLine(), LineReader::reinit(), NamedColumnsParser::reinit(), SUMOReal, toString(), WRITE_ERROR, WRITE_WARNING, and GeoConvHelper::x2cartesian().

void PCLoaderVisum::loadIfSet ( OptionsCont &  oc,
PCPolyContainer &  toFill,
PCTypeMap &  tm 
) throw (ProcessError) [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.

Parameters:
[in]ocThe options container to get further options from
[in]toFillThe poly/pois container to add loaded polys/pois to
[in]tmThe type map to use for setting values of loaded polys/pois
Exceptions:
ProcessErrorif something fails

Definition at line 62 of file PCLoaderVisum.cpp.

References FileHelpers::exists(), load(), PROGRESS_BEGIN_MESSAGE, and PROGRESS_DONE_MESSAGE.

Referenced by main().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines