69 #ifdef CHECK_MEMORY_LEAKS
71 #endif // CHECK_MEMORY_LEAKS
103 if (oc.
getBool(
"tls.discard-loaded") || oc.
getBool(
"tls.discard-simple")) {
105 oc.
getBool(
"tls.guess-signals"));
170 const std::string& type) {
172 std::string exceptMsg =
"";
175 for (std::vector<std::string>::const_iterator file = files.begin(); file != files.end(); ++file) {
177 WRITE_ERROR(
"Could not open " + type +
"-file '" + *file +
"'.");
178 exceptMsg =
"Process Error";
185 }
catch (
const XERCES_CPP_NAMESPACE::XMLException& toCatch) {
187 +
"\n The " + type +
" could not be loaded from '" + handler->
getFileName() +
"'.";
189 exceptMsg = std::string(toCatch.what()) +
"\n The " + type +
" could not be loaded from '" + handler->
getFileName() +
"'.";
191 exceptMsg =
"The " + type +
" could not be loaded from '" + handler->
getFileName() +
"'.";
194 if (exceptMsg !=
"") {
Importer for network edges stored in XML.
std::vector< std::string > getStringVector(const std::string &name) const
Returns the list of string-vector-value of the named option (only for Option_String) ...
std::set< std::string > deprecatedVehicleClassesSeen
NBTypeCont & getTypeCont()
Returns the type container.
static bool isReadable(std::string path)
Checks whether the given file is readable.
size_t size() const
Returns the number of districts inside the container.
static GeoConvHelper & getProcessing()
the coordinate transformation to use for input conversion and processing
Importer for edge connections stored in XML.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given ArcView Shape files.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given dlr-navteq (aka Elmar-fomat) folder.
unsigned int getNoEdgeSplits() const
Returns the number of edge splits.
SAX-handler base for SUMO-files.
static bool runParser(GenericSAXHandler &handler, const std::string &file, const bool isNet=false)
Runs the given handler on the given file; returns if everything's ok.
#define WRITE_WARNING(msg)
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads network definition from the assigned option and stores it in the given network builder...
void loadXMLType(SUMOSAXHandler *handler, const std::vector< std::string > &files, const std::string &type)
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given OSM file.
unsigned int size() const
Returns the number of known nodes.
static void loadIfSet(OptionsCont &oc)
loads heigh map data if any loading options are set
const std::string & getFileName() const
returns the current file name
Importer for network nodes stored in XML.
NBEdgeCont & getEdgeCont()
Returns the edge container.
static std::string _2str(const E *const data)
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given SUMO file.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given RoboCup Rescue League files.
unsigned int size() const
Returns the number of known types.
#define PROGRESS_BEGIN_MESSAGE(msg)
void load(OptionsCont &oc)
void loadXML(OptionsCont &oc)
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
static void loadNetwork(OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given SUMO file.
Importer for edge type information stored in XML.
NBNodeCont & getNodeCont()
Returns the node container.
Instance responsible for building networks.
A storage for options typed value containers)
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads network definition from the assigned option and stores it in the given network builder...
NBTrafficLightLogicCont & getTLLogicCont()
Returns the traffic light logics container.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given ITSUMO network files.
void discardTrafficLights(NBTrafficLightLogicCont &tlc, bool geometryLike, bool guessSignals)
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given MATSIM network files.
NBNetBuilder & myNetBuilder
The network builder to fill with loaded data.
Importer for edge connections stored in XML.
#define PROGRESS_DONE_MESSAGE()
size_t getNumExtracted() const
return the number of extracted traffic light definitions
#define WRITE_MESSAGE(msg)
NILoader(NBNetBuilder &nb)
Constructor.
NBDistrictCont & getDistrictCont()
Returns the districts container.
unsigned int size() const
Returns the number of edges.