Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
libsumocpp2c.cpp File Reference
#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"
Include dependency graph for libsumocpp2c.cpp:

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)

Detailed Description

Author
Robert Hilbrich
Matthias Schwamborn
Date
Mon, 17 Aug 2020

Definition in file libsumocpp2c.cpp.

Macro Definition Documentation

◆ DELIMITER

Function Documentation

◆ allocateAndCopyString()

char * allocateAndCopyString ( ModelInstance * comp,
const std::string & s )
inline

Definition at line 42 of file libsumocpp2c.cpp.

References ModelInstance::allocateMemory.

Referenced by libsumo_vehicle_getLaneID(), libsumo_vehicle_getParameterWithKey(), and libsumo_vehicle_getPosition().

Here is the caller graph for this function:

◆ libsumo_close()

void libsumo_close ( void )

Definition at line 68 of file libsumocpp2c.cpp.

Referenced by fmi2Terminate().

Here is the caller graph for this function:

◆ libsumo_load()

void libsumo_load ( char * callOptions)

Definition at line 50 of file libsumocpp2c.cpp.

References DELIMITER.

Referenced by fmi2ExitInitializationMode().

Here is the caller graph for this function:

◆ libsumo_step()

void libsumo_step ( double time)

Definition at line 73 of file libsumocpp2c.cpp.

Referenced by sumo2fmi_step().

Here is the caller graph for this function:

◆ libsumo_vehicle_getIDCount()

int libsumo_vehicle_getIDCount ( void )

Definition at line 78 of file libsumocpp2c.cpp.

Referenced by sumo2fmi_getInteger().

Here is the caller graph for this function:

◆ libsumo_vehicle_getLaneID()

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().

Here is the caller graph for this function:

◆ libsumo_vehicle_getParameterWithKey()

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().

Here is the caller graph for this function:

◆ libsumo_vehicle_getPosition()

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().

Here is the caller graph for this function:

◆ libsumo_vehicle_moveToXY()

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().

Here is the caller graph for this function: