Eclipse SUMO - Simulation of Urban MObility
|
#include <sstream>
#include <iostream>
#include <stdlib.h>
#include <libsumo/TraCIConstants.h>
#include <libsumo/TraCIDefs.h>
#include <libsumo/Simulation.h>
#include <libsumo/Vehicle.h>
#include "libsumocpp2c.h"
Go to the source code of this file.
Macros | |
#define | DELIMITER ' ' |
Functions | |
char * | allocateAndCopyString (ModelInstance *comp, const std::string &s) |
void | libsumo_close (void) |
void | libsumo_load (char *callOptions) |
void | libsumo_step (double time) |
int | libsumo_vehicle_getIDCount (void) |
void | libsumo_vehicle_getLaneID (ModelInstance *comp, const char **result) |
void | libsumo_vehicle_getParameterWithKey (ModelInstance *comp, const char **result) |
void | libsumo_vehicle_getPosition (ModelInstance *comp, const char **result) |
void | libsumo_vehicle_moveToXY (const char *paramString) |
Definition in file libsumocpp2c.cpp.
#define DELIMITER ' ' |
Definition at line 39 of file libsumocpp2c.cpp.
|
inline |
Definition at line 42 of file libsumocpp2c.cpp.
References ModelInstance::allocateMemory.
Referenced by libsumo_vehicle_getLaneID(), libsumo_vehicle_getParameterWithKey(), and libsumo_vehicle_getPosition().
void libsumo_close | ( | void | ) |
Definition at line 68 of file libsumocpp2c.cpp.
Referenced by fmi2Terminate().
void libsumo_load | ( | char * | callOptions | ) |
Definition at line 50 of file libsumocpp2c.cpp.
References DELIMITER.
Referenced by fmi2ExitInitializationMode().
void libsumo_step | ( | double | time | ) |
Definition at line 73 of file libsumocpp2c.cpp.
Referenced by sumo2fmi_step().
int libsumo_vehicle_getIDCount | ( | void | ) |
Definition at line 78 of file libsumocpp2c.cpp.
Referenced by sumo2fmi_getInteger().
void libsumo_vehicle_getLaneID | ( | ModelInstance * | comp, |
const char ** | result | ||
) |
Definition at line 129 of file libsumocpp2c.cpp.
References allocateAndCopyString(), DELIMITER, and ModelInstance::getterParameters.
Referenced by sumo2fmi_getString().
void libsumo_vehicle_getParameterWithKey | ( | ModelInstance * | comp, |
const char ** | result | ||
) |
Definition at line 108 of file libsumocpp2c.cpp.
References allocateAndCopyString(), DELIMITER, and ModelInstance::getterParameters.
Referenced by sumo2fmi_getString().
void libsumo_vehicle_getPosition | ( | ModelInstance * | comp, |
const char ** | result | ||
) |
Definition at line 147 of file libsumocpp2c.cpp.
References allocateAndCopyString(), DELIMITER, ModelInstance::getterParameters, libsumo::TraCIPosition::x, and libsumo::TraCIPosition::y.
Referenced by sumo2fmi_getString().
void libsumo_vehicle_moveToXY | ( | const char * | paramString | ) |
Definition at line 83 of file libsumocpp2c.cpp.
References DELIMITER, and libsumo::INVALID_DOUBLE_VALUE.
Referenced by sumo2fmi_setString().