SUMO - Simulation of Urban MObility
NILoader Class Reference

Perfoms network import. More...

#include <NILoader.h>

Public Member Functions

void load (OptionsCont &oc)
 NILoader (NBNetBuilder &nb)
 Constructor.
 ~NILoader ()
 Destructor.

Static Public Member Functions

static bool transformCoordinates (Position &from, bool includeInBoundary=true, GeoConvHelper *from_srs=0)
 transforms loaded coordinates handles projections, offsets (using GeoConvHelper) and import of height data (using Heightmapper if available)
static bool transformCoordinates (PositionVector &from, bool includeInBoundary=true, GeoConvHelper *from_srs=0)

Private Member Functions

void loadXML (OptionsCont &oc)
void loadXMLType (SUMOSAXHandler *handler, const std::vector< std::string > &files, const std::string &type)
 NILoader (const NILoader &)
 Invalidated copy constructor.
NILoaderoperator= (const NILoader &)
 Invalidated assignment operator.

Private Attributes

NBNetBuildermyNetBuilder
 The network builder to fill with loaded data.

Detailed Description

Perfoms network import.

A plain loader which encapsulates calls to the import modules.

Definition at line 60 of file NILoader.h.


Constructor & Destructor Documentation

Constructor.

Parameters:
[in]nbThe network builder to fill with loaded data

Definition at line 79 of file NILoader.cpp.

Destructor.

Definition at line 83 of file NILoader.cpp.

NILoader::NILoader ( const NILoader ) [private]

Invalidated copy constructor.


Member Function Documentation

void NILoader::loadXMLType ( SUMOSAXHandler handler,
const std::vector< std::string > &  files,
const std::string &  type 
) [private]

loads data from the list of xml-files of certain type

Definition at line 164 of file NILoader.cpp.

References FileHelpers::exists(), GenericSAXHandler::getFileName(), XMLSubSys::getSAXReader(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, GenericSAXHandler::setFileName(), and WRITE_ERROR.

Referenced by load(), and loadXML().

NILoader& NILoader::operator= ( const NILoader ) [private]

Invalidated assignment operator.


Field Documentation

The network builder to fill with loaded data.

Definition at line 98 of file NILoader.h.

Referenced by load(), and loadXML().


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