14namespace 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(std::ifstream &in_file, T &out_obj)
uint64_t next_right_waypoint
void ReadValue(const std::vector< uint8_t > &content, unsigned long &start, T &out_obj)
void Read(const std::vector< uint8_t > &content, unsigned long &start)
void Write(std::ofstream &out_file)
std::vector< uint64_t > next_waypoints
std::vector< uint64_t > previous_waypoints
uint64_t next_left_waypoint
void WriteValue(std::ofstream &out_file, const T &in_obj)
CachedSimpleWaypoint()=default
std::shared_ptr< SimpleWaypoint > SimpleWaypointPtr
This file contains definitions of common data structures used in traffic manager.