My Project
src
data_structs.h
1
6
#ifndef SRC_DATA_STRUCTS_H_
7
#define SRC_DATA_STRUCTS_H_
8
9
#include <string>
10
#include <vector>
11
16
struct
Position
{
17
Position
() : x(0), y(0) {}
18
float
x;
19
float
y;
20
};
21
26
struct
BusData
{
27
BusData
() : id(
""
), position(
Position
()), num_passengers(0), capacity(0) {}
28
std::string id;
// some unique identifier for the bus
29
Position
position;
// long lat position of bus
30
int
num_passengers;
31
int
capacity;
32
};
37
struct
StopData
{
38
StopData
() : id(
""
), position(
Position
()), num_people(0) {}
39
std::string id;
// some unique identifier for the stop
40
Position
position;
// long lat position of bus
41
int
num_people;
42
};
47
struct
RouteData
{
48
RouteData
() : id(
""
), stops(std::vector<StopData>(0)) {}
49
std::string id;
// some unique identifier for the route
50
std::vector<StopData> stops;
51
};
52
53
#endif // SRC_DATA_STRUCTS_H_
BusData
Structure for bus data used for visualization simulation.
Definition:
data_structs.h:26
StopData
Structure for stop data used for visualization simulation.
Definition:
data_structs.h:37
RouteData
Structure for route data used for visualization simulation.
Definition:
data_structs.h:47
Position
Structure for position.
Definition:
data_structs.h:16
Generated by
1.8.16