SUMO - Simulation of Urban MObility
GeomConvHelper.h
Go to the documentation of this file.
00001 /****************************************************************************/
00009 // Some helping functions for geometry parsing
00010 /****************************************************************************/
00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00013 /****************************************************************************/
00014 //
00015 //   This file is part of SUMO.
00016 //   SUMO is free software: you can redistribute it and/or modify
00017 //   it under the terms of the GNU General Public License as published by
00018 //   the Free Software Foundation, either version 3 of the License, or
00019 //   (at your option) any later version.
00020 //
00021 /****************************************************************************/
00022 #ifndef GeomConvHelper_h
00023 #define GeomConvHelper_h
00024 
00025 
00026 // ===========================================================================
00027 // included modules
00028 // ===========================================================================
00029 #ifdef _MSC_VER
00030 #include <windows_config.h>
00031 #else
00032 #include <config.h>
00033 #endif
00034 
00035 #include <string>
00036 #include <utils/geom/PositionVector.h>
00037 #include <utils/geom/Boundary.h>
00038 
00039 
00040 // ===========================================================================
00041 // class definitions
00042 // ===========================================================================
00047 class GeomConvHelper {
00048 public:
00060     static PositionVector parseShapeReporting(const std::string& shpdef, const std::string& objecttype,
00061             const char* objectid, bool& ok, bool allowEmpty, bool report = true) ;
00062 
00063 
00074     static Boundary parseBoundaryReporting(const std::string& def, const std::string& objecttype,
00075                                            const char* objectid, bool& ok, bool report = true) ;
00076 
00077 
00078 private:
00086     static void emitError(bool report, const std::string& what, const std::string& objecttype,
00087                           const char* objectid, const std::string& desc) ;
00088 
00089 
00090 };
00091 
00092 
00093 #endif
00094 
00095 /****************************************************************************/
00096 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines