sumo-integrator  0.4.0-alpha4+201812051700
sumo-integrator is a C++ static library that provides abstract integration tools geared towards connecting SUMO with a (any) graphic engine(s).
sumointegrator::types Namespace Reference

Basic types (re)definitions and management. More...

Typedefs

typedef libsumo::TraCIResult Data
 Generic data container. More...
 
typedef libsumo::TraCIPosition Position
 A 3D position. More...
 
typedef libsumo::TraCIResults Datamap
 std::map of generic Data.
 
typedef libsumo::SubscriptionResults Datamaps
 std::map of Datamaps.
 
typedef libsumo::TraCIException RuntimeException
 Generic runtime exception.
 
typedef tcpip::SocketException ConnectionException
 Generic connection exception.
 

Functions

int cast_int (const std::shared_ptr< Data >)
 Cast to a standard int. More...
 
double cast_double (const std::shared_ptr< Data >)
 Cast to a standard double. More...
 

Detailed Description

Basic types (re)definitions and management.

Typedef Documentation

◆ Data

typedef libsumo::TraCIResult sumointegrator::types::Data

Generic data container.

May contain a number of different data types: use the provided functions to cast to built-in standard types for usage.

See also
cast_int()
cast_double()

◆ Position

typedef libsumo::TraCIPosition sumointegrator::types::Position

A 3D position.

x, y, and z coordinates are saved as double and accessible directly.

Function Documentation

◆ cast_int()

int sumointegrator::types::cast_int ( const std::shared_ptr< Data data)

Cast to a standard int.

Parameters
[in]dataAn std::shared_ptr to some generic Data.
Returns
The corresponding standard int.

◆ cast_double()

double sumointegrator::types::cast_double ( const std::shared_ptr< Data data)

Cast to a standard double.

Parameters
[in]dataAn std::shared_ptr to some generic Data.
Returns
The corresponding standard double.