SUMO - Simulation of Urban MObility

TraCIServerAPI_VehicleType.h

Go to the documentation of this file.
00001 /****************************************************************************/
00008 // APIs for getting/setting vehicle type values via TraCI
00009 /****************************************************************************/
00010 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00011 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00012 /****************************************************************************/
00013 //
00014 //   This file is part of SUMO.
00015 //   SUMO 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 3 of the License, or
00018 //   (at your option) any later version.
00019 //
00020 /****************************************************************************/
00021 #ifndef TraCIServerAPI_VehicleType_h
00022 #define TraCIServerAPI_VehicleType_h
00023 
00024 
00025 // ===========================================================================
00026 // included modules
00027 // ===========================================================================
00028 #ifdef _MSC_VER
00029 #include <windows_config.h>
00030 #else
00031 #include <config.h>
00032 #endif
00033 
00034 #include "TraCIException.h"
00035 #include "TraCIServer.h"
00036 #include <foreign/tcpip/storage.h>
00037 
00038 
00039 // ===========================================================================
00040 // class definitions
00041 // ===========================================================================
00046 class TraCIServerAPI_VehicleType {
00047 public:
00054     static bool processGet(traci::TraCIServer& server, tcpip::Storage& inputStorage,
00055                            tcpip::Storage& outputStorage);
00056 
00057 
00064     static bool getVariable(const int variable, const MSVehicleType& v, tcpip::Storage& tempMsg);
00065 
00066 
00073     static bool processSet(traci::TraCIServer& server, tcpip::Storage& inputStorage,
00074                            tcpip::Storage& outputStorage);
00075 
00076 
00083     static bool setVariable(const int cmd, const int variable, const int valueDataType,
00084                             MSVehicleType& v, traci::TraCIServer& server,
00085                             tcpip::Storage& inputStorage, tcpip::Storage& outputStorage);
00086 
00087 
00088 private:
00090     TraCIServerAPI_VehicleType(const TraCIServerAPI_VehicleType& s);
00091 
00093     TraCIServerAPI_VehicleType& operator=(const TraCIServerAPI_VehicleType& s);
00094 
00095 
00096 };
00097 
00098 
00099 #endif
00100 
00101 /****************************************************************************/
00102 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines