TraCIException.h

Go to the documentation of this file.
00001 /****************************************************************************/
00010 /****************************************************************************/
00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00012 // Copyright 2001-2010 DLR (http://www.dlr.de/) and contributors
00013 /****************************************************************************/
00014 //
00015 //   This program is free software; you can redistribute it and/or modify
00016 //   it under the terms of the GNU General Public License as published by
00017 //   the Free Software Foundation; either version 2 of the License, or
00018 //   (at your option) any later version.
00019 //
00020 /****************************************************************************/
00021 #ifndef TRACIEXCEPTION_H
00022 #define TRACIEXCEPTION_H
00023 #ifndef NO_TRACI
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 
00037 
00038 // ===========================================================================
00039 // class definitions
00040 // ===========================================================================
00044 namespace traci {
00045 class TraCIException {
00046 private:
00047     std::string what_;
00048 
00049 public:
00050     TraCIException(std::string what)
00051             : what_(what) {}
00052     std::string what() const {
00053         return what_;
00054     }
00055 };
00056 
00057 }
00058 
00059 #endif
00060 
00061 #endif

Generated on Wed May 5 00:06:37 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6