gusimplewhiteboard
wb_nao_obstacle_direction.h File Reference
#include <gu_util.h>
#include <stdint.h>
Include dependency graph for wb_nao_obstacle_direction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wb_nao_obstacle_direction
 WHITEBOARD_POSTER_STRING_CONVERSION. More...
 

Macros

#define _XOPEN_SOURCE   700
 
#define NAO_OBSTACLE_DIRECTION_GENERATED
 
#define NAO_OBSTACLE_DIRECTION_C_STRUCT   wb_nao_obstacle_direction
 
#define NAO_OBSTACLE_DIRECTION_NUMBER_OF_VARIABLES   3
 
#define NAO_OBSTACLE_DIRECTION_DESC_BUFFER_SIZE   37
 
#define NAO_OBSTACLE_DIRECTION_TO_STRING_BUFFER_SIZE   20
 

Functions

const char * wb_nao_obstacle_direction_description (const struct wb_nao_obstacle_direction *self, char *descString, size_t bufferSize)
 Convert to a description string. More...
 
const char * wb_nao_obstacle_direction_to_string (const struct wb_nao_obstacle_direction *self, char *toString, size_t bufferSize)
 Convert to a string. More...
 
struct wb_nao_obstacle_directionwb_nao_obstacle_direction_from_string (struct wb_nao_obstacle_direction *self, const char *str)
 Convert from a string. More...
 
size_t wb_nao_obstacle_direction_to_network_serialised (const struct wb_nao_obstacle_direction *self, char *dst)
 WHITEBOARD_POSTER_STRING_CONVERSION. More...
 
size_t wb_nao_obstacle_direction_from_network_serialised (const char *src, struct wb_nao_obstacle_direction *dst)
 Network stream deserialisation. More...
 

Macro Definition Documentation

◆ _XOPEN_SOURCE

#define _XOPEN_SOURCE   700

Definition at line 72 of file wb_nao_obstacle_direction.h.

◆ NAO_OBSTACLE_DIRECTION_C_STRUCT

#define NAO_OBSTACLE_DIRECTION_C_STRUCT   wb_nao_obstacle_direction

Definition at line 89 of file wb_nao_obstacle_direction.h.

◆ NAO_OBSTACLE_DIRECTION_DESC_BUFFER_SIZE

#define NAO_OBSTACLE_DIRECTION_DESC_BUFFER_SIZE   37

Definition at line 93 of file wb_nao_obstacle_direction.h.

◆ NAO_OBSTACLE_DIRECTION_GENERATED

#define NAO_OBSTACLE_DIRECTION_GENERATED

Definition at line 88 of file wb_nao_obstacle_direction.h.

◆ NAO_OBSTACLE_DIRECTION_NUMBER_OF_VARIABLES

#define NAO_OBSTACLE_DIRECTION_NUMBER_OF_VARIABLES   3

Definition at line 90 of file wb_nao_obstacle_direction.h.

◆ NAO_OBSTACLE_DIRECTION_TO_STRING_BUFFER_SIZE

#define NAO_OBSTACLE_DIRECTION_TO_STRING_BUFFER_SIZE   20

Definition at line 94 of file wb_nao_obstacle_direction.h.

Function Documentation

◆ wb_nao_obstacle_direction_description()

const char * wb_nao_obstacle_direction_description ( const struct wb_nao_obstacle_direction self,
char *  descString,
size_t  bufferSize 
)

Convert to a description string.

Definition at line 125 of file wb_nao_obstacle_direction.c.

Referenced by guWhiteboard::NaoObstacleDirection::description().

◆ wb_nao_obstacle_direction_from_network_serialised()

size_t wb_nao_obstacle_direction_from_network_serialised ( const char *  src,
struct wb_nao_obstacle_direction dst 
)

Network stream deserialisation.

Network stream deserialisation.

Definition at line 334 of file wb_nao_obstacle_direction.c.

References wb_nao_obstacle_direction::front, wb_nao_obstacle_direction::left, and wb_nao_obstacle_direction::right.

◆ wb_nao_obstacle_direction_from_string()

struct wb_nao_obstacle_direction * wb_nao_obstacle_direction_from_string ( struct wb_nao_obstacle_direction self,
const char *  str 
)

Convert from a string.

Definition at line 189 of file wb_nao_obstacle_direction.c.

References NAO_OBSTACLE_DIRECTION_DESC_BUFFER_SIZE.

◆ wb_nao_obstacle_direction_to_network_serialised()

size_t wb_nao_obstacle_direction_to_network_serialised ( const struct wb_nao_obstacle_direction self,
char *  dst 
)

WHITEBOARD_POSTER_STRING_CONVERSION.

Network stream serialisation

WHITEBOARD_POSTER_STRING_CONVERSION.

Definition at line 299 of file wb_nao_obstacle_direction.c.

◆ wb_nao_obstacle_direction_to_string()

const char * wb_nao_obstacle_direction_to_string ( const struct wb_nao_obstacle_direction self,
char *  toString,
size_t  bufferSize 
)

Convert to a string.

Definition at line 157 of file wb_nao_obstacle_direction.c.

Referenced by guWhiteboard::NaoObstacleDirection::to_string().