53 #ifdef CHECK_MEMORY_LEAKS
55 #endif // CHECK_MEMORY_LEAKS
67 throw ProcessError(
"Could not open net-file '" + file +
"'.");
83 throw ProcessError(
"Could not find projection parameter in net.");
95 myFoundLocation(false),
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
~PCNetProjectionLoader()
Destructor.
bool hasReadAll() const
Returns whether all needed values were read.
int myShift
shift of input coordinates (not given in the location element)
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.
const std::string & getFileName() const
returns the current file name
void setFileName(const std::string &name)
Sets the current file name.
Encapsulated SAX-Attributes.
A point in 2D or 3D with translation and scaling methods.
static bool exists(std::string path)
Checks whether the given file exists.
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.
static void load(const std::string &file, int shift)
Loads network projection if wished.
bool parseFirst(std::string systemID)
PCNetProjectionLoader(int shift)
Constructor.
T get(int attr, const char *objectid, bool &ok, bool report=true) const
Tries to read given attribute assuming it is an int.
#define PROGRESS_DONE_MESSAGE()