70 #ifdef CHECK_MEMORY_LEAKS 72 #endif // CHECK_MEMORY_LEAKS 90 if (!oc.
isSet(
"type-files")) {
91 std::vector<std::string> files;
92 if (oc.
isSet(
"osm-files")) {
95 if (oc.
isSet(
"opendrive-files")) {
115 if (oc.
getBool(
"tls.discard-loaded") || oc.
getBool(
"tls.discard-simple")) {
117 oc.
getBool(
"tls.guess-signals"));
182 const std::string& type,
const bool stringParse) {
184 std::string exceptMsg =
"";
187 for (std::vector<std::string>::const_iterator file = files.begin(); file != files.end(); ++file) {
196 WRITE_ERROR(
"Could not open " + type +
"-file '" + *file +
"'.");
197 exceptMsg =
"Process Error";
204 }
catch (
const XERCES_CPP_NAMESPACE::XMLException& toCatch) {
206 +
"\n The " + type +
" could not be loaded from '" + handler->
getFileName() +
"'.";
208 exceptMsg = std::string(toCatch.what()) +
"\n The " + type +
" could not be loaded from '" + handler->
getFileName() +
"'.";
210 exceptMsg =
"The " + type +
" could not be loaded from '" + handler->
getFileName() +
"'.";
213 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.
int size() const
Returns the number of edges.
static bool isReadable(std::string path)
Checks whether the given file is readable.
static GeoConvHelper & getProcessing()
the coordinate transformation to use for input conversion and processing
Importer for edge connections stored in XML.
const std::string osmTypemap
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.
SAX-reader encapsulation containing binary reader.
int getNoEdgeSplits() const
Returns the number of edge splits.
void parseString(std::string content)
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...
int getNumExtracted() const
return the number of extracted traffic light definitions
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given OSM file.
void loadXMLType(SUMOSAXHandler *handler, const std::vector< std::string > &files, const std::string &type, const bool stringParse=false)
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
void setFileName(const std::string &name)
Sets the current file name.
Importer for network nodes stored in XML.
NBEdgeCont & getEdgeCont()
Returns the edge container.
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.
static SUMOSAXReader * getSAXReader(SUMOSAXHandler &handler)
Builds a reader and assigns the handler to it.
#define PROGRESS_BEGIN_MESSAGE(msg)
void load(OptionsCont &oc)
void loadXML(OptionsCont &oc)
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
const std::string opendriveTypemap
static void loadNetwork(OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given SUMO file.
Importer for edge type information stored in XML.
int size() const
Returns the number of known types.
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.
int size() const
Returns the number of known nodes.
Importer for edge connections stored in XML.
#define PROGRESS_DONE_MESSAGE()
#define WRITE_MESSAGE(msg)
NILoader(NBNetBuilder &nb)
Constructor.
NBDistrictCont & getDistrictCont()
Returns the districts container.
static std::string _2str(const int var)
convert int to string
int size() const
Returns the number of districts inside the container.
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.