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