60#ifndef wb_line_sighting_h
61#define wb_line_sighting_h
63#pragma clang diagnostic push
64#pragma clang diagnostic ignored "-Wreserved-id-macro"
68# define _POSIX_SOURCE 200112L
72# define _XOPEN_SOURCE 700
75# ifndef _DARWIN_C_SOURCE
76# define _DARWIN_C_SOURCE 200112L
78# ifndef __DARWIN_C_LEVEL
79# define __DARWIN_C_LEVEL 200112L
83#pragma clang diagnostic pop
95#define LINE_SIGHTING_GENERATED
96#define LINE_SIGHTING_C_STRUCT wb_line_sighting
97#define LINE_SIGHTING_NUMBER_OF_VARIABLES 3
99#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
100#define LINE_SIGHTING_DESC_BUFFER_SIZE 1575
101#define LINE_SIGHTING_TO_STRING_BUFFER_SIZE 1541
131#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
WHITEBOARD_POSTER_STRING_CONVERSION.
enum LineSightingType sightingType
The type of sighting.
struct wb_polar_coordinate rightPoint
The right/top point of the line.
struct wb_polar_coordinate leftPoint
The left/bottom point of the line.
WHITEBOARD_POSTER_STRING_CONVERSION.
const char * wb_line_sighting_description(const struct wb_line_sighting *self, char *descString, size_t bufferSize)
Convert to a description string.
@ HorizonLineSightingType
size_t wb_line_sighting_to_network_serialised(const struct wb_line_sighting *self, char *dst)
WHITEBOARD_POSTER_STRING_CONVERSION.
const char * wb_line_sighting_to_string(const struct wb_line_sighting *self, char *toString, size_t bufferSize)
Convert to a string.
size_t wb_line_sighting_from_network_serialised(const char *src, struct wb_line_sighting *dst)
Network stream deserialisation.
struct wb_line_sighting * wb_line_sighting_from_string(struct wb_line_sighting *self, const char *str)
Convert from a string.