14 namespace traffic_manager {
36 void Read(
const std::vector<uint8_t>& content,
unsigned long& start);
38 void Read(std::ifstream &in_file);
39 void Write(std::ofstream &out_file);
43 void WriteValue(std::ofstream &out_file,
const T &in_obj) {
44 out_file.write(reinterpret_cast<const char *>(&in_obj),
sizeof(T));
47 void ReadValue(std::ifstream &in_file, T &out_obj) {
48 in_file.read(reinterpret_cast<char *>(&out_obj),
sizeof(T));
51 void ReadValue(
const std::vector<uint8_t>& content,
unsigned long& start, T &out_obj) {
52 memcpy(&out_obj, &content[start],
sizeof(T));
void ReadValue(const std::vector< uint8_t > &content, unsigned long &start, T &out_obj)
std::vector< uint64_t > next_waypoints
std::vector< uint64_t > previous_waypoints
This file contains definitions of common data structures used in traffic manager. ...
void WriteValue(std::ofstream &out_file, const T &in_obj)
CachedSimpleWaypoint()=default
uint64_t next_right_waypoint
void Read(const std::vector< uint8_t > &content, unsigned long &start)
uint64_t next_left_waypoint
void ReadValue(std::ifstream &in_file, T &out_obj)
void Write(std::ofstream &out_file)
std::shared_ptr< SimpleWaypoint > SimpleWaypointPtr