57 throw ProcessError(
"Could not open net-file '" + file +
"'.");
74 throw ProcessError(
"Could not find projection parameter in net.");
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
~PCNetProjectionLoader()
Destructor.
static bool isReadable(std::string path)
Checks whether the given file is readable.
double myScale
scaling of input coordinates (not given in the location element)
const std::string & getFileName() const
returns the current file name
static void load(const std::string &file, double scale)
Loads network projection if wished.
SAX-reader encapsulation containing binary reader.
bool myFoundLocation
Information whether the parameter was read.
SAX-handler base for SUMO-files.
A class that stores a 2D geometrical boundary.
static OptionsCont & getOptions()
Retrieves the options.
#define PROGRESS_TIME_MESSAGE(before)
void setFileName(const std::string &name)
Sets the current file name.
Encapsulated SAX-Attributes.
T get(int attr, const char *objectid, bool &ok, bool report=true) const
Tries to read given attribute assuming it is an int.
A point in 2D or 3D with translation and scaling methods.
static SUMOSAXReader * getSAXReader(SUMOSAXHandler &handler)
Builds a reader and assigns the handler to it.
static bool init(OptionsCont &oc)
Initialises the processing and the final instance using the given options.
#define PROGRESS_BEGIN_MESSAGE(msg)
A reader for a SUMO network's projection description.
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
bool parseFirst(std::string systemID)
A storage for options typed value containers)
PCNetProjectionLoader(double scale)
Constructor.
static long getCurrentMillis()
Returns the current time in milliseconds.
bool hasReadAll() const
Returns whether all needed values were read.