gusimplewhiteboard
|
#include <gu_util.h>
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | wb_polar_coordinate |
WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
Macros | |
#define | _XOPEN_SOURCE 700 |
#define | POLAR_COORDINATE_GENERATED |
#define | POLAR_COORDINATE_C_STRUCT wb_polar_coordinate |
#define | POLAR_COORDINATE_NUMBER_OF_VARIABLES 2 |
#define | POLAR_COORDINATE_DESC_BUFFER_SIZE 33 |
#define | POLAR_COORDINATE_TO_STRING_BUFFER_SIZE 14 |
Functions | |
const char * | wb_polar_coordinate_description (const struct wb_polar_coordinate *self, char *descString, size_t bufferSize) |
Convert to a description string. More... | |
const char * | wb_polar_coordinate_to_string (const struct wb_polar_coordinate *self, char *toString, size_t bufferSize) |
Convert to a string. More... | |
struct wb_polar_coordinate * | wb_polar_coordinate_from_string (struct wb_polar_coordinate *self, const char *str) |
Convert from a string. More... | |
size_t | wb_polar_coordinate_to_network_serialised (const struct wb_polar_coordinate *self, char *dst) |
WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
size_t | wb_polar_coordinate_from_network_serialised (const char *src, struct wb_polar_coordinate *dst) |
Network stream deserialisation. More... | |
#define _XOPEN_SOURCE 700 |
Definition at line 72 of file wb_polar_coordinate.h.
#define POLAR_COORDINATE_C_STRUCT wb_polar_coordinate |
Definition at line 91 of file wb_polar_coordinate.h.
#define POLAR_COORDINATE_DESC_BUFFER_SIZE 33 |
Definition at line 95 of file wb_polar_coordinate.h.
#define POLAR_COORDINATE_GENERATED |
Definition at line 90 of file wb_polar_coordinate.h.
#define POLAR_COORDINATE_NUMBER_OF_VARIABLES 2 |
Definition at line 92 of file wb_polar_coordinate.h.
#define POLAR_COORDINATE_TO_STRING_BUFFER_SIZE 14 |
Definition at line 96 of file wb_polar_coordinate.h.
const char * wb_polar_coordinate_description | ( | const struct wb_polar_coordinate * | self, |
char * | descString, | ||
size_t | bufferSize | ||
) |
Convert to a description string.
Definition at line 125 of file wb_polar_coordinate.c.
Referenced by guWhiteboard::PolarCoordinate::description(), wb_line_sighting_description(), and wb_vision_detection_feature_description().
size_t wb_polar_coordinate_from_network_serialised | ( | const char * | src, |
struct wb_polar_coordinate * | dst | ||
) |
Network stream deserialisation.
Network stream deserialisation.
Definition at line 315 of file wb_polar_coordinate.c.
References wb_polar_coordinate::direction, wb_polar_coordinate::distance, and ntohs.
struct wb_polar_coordinate * wb_polar_coordinate_from_string | ( | struct wb_polar_coordinate * | self, |
const char * | str | ||
) |
Convert from a string.
Definition at line 173 of file wb_polar_coordinate.c.
References POLAR_COORDINATE_DESC_BUFFER_SIZE.
Referenced by wb_line_sighting_from_string(), and wb_vision_detection_feature_from_string().
size_t wb_polar_coordinate_to_network_serialised | ( | const struct wb_polar_coordinate * | self, |
char * | dst | ||
) |
WHITEBOARD_POSTER_STRING_CONVERSION.
Network stream serialisation
WHITEBOARD_POSTER_STRING_CONVERSION.
Definition at line 276 of file wb_polar_coordinate.c.
References htons.
const char * wb_polar_coordinate_to_string | ( | const struct wb_polar_coordinate * | self, |
char * | toString, | ||
size_t | bufferSize | ||
) |
Convert to a string.
Definition at line 149 of file wb_polar_coordinate.c.
Referenced by guWhiteboard::PolarCoordinate::to_string(), wb_line_sighting_to_string(), and wb_vision_detection_feature_to_string().