44 #ifdef CHECK_MEMORY_LEAKS
47 #endif // CHECK_MEMORY_LEAKS
81 throw ProcessError(
"Could not find network '" + districtfile +
"' to load.");
std::string getRandomSource() const
Returns the id of a source to use.
An XML-Handler for districts.
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.
void loadDistricts(std::string districtfile)
#define PROGRESS_FAILED_MESSAGE()
~ODDistrictCont()
Destructor.
std::string getRandomSourceFromDistrict(const std::string &name) const
Returns the id of a random source from the named district.
ODDistrictCont()
Constructor.
std::string getRandomSink() const
Returns the id of a sink to use.
static bool exists(std::string path)
Checks whether the given file exists.
#define PROGRESS_BEGIN_MESSAGE(msg)
std::string getRandomSinkFromDistrict(const std::string &name) const
Returns the id of a random sink from the named district.
#define PROGRESS_DONE_MESSAGE()
A district (origin/destination)