#include <stdio.h>
#include <ctype.h>
#include <assert.h>
#include <string.h>
#include <limits.h>
#include <float.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stddef.h>
#include "rply.h"
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | t_ply_ |
struct | t_ply_argument_ |
struct | t_ply_element_ |
struct | t_ply_idriver_ |
struct | t_ply_odriver_ |
struct | t_ply_property_ |
Macros | |
#define | BFIRST(p) (p->buffer + p->buffer_first) |
#define | BLINE(p) (p->buffer + p->buffer_token) |
#define | BSIZE(p) (p->buffer_last - p->buffer_first) |
#define | BSKIP(p, s) (p->buffer_first += s) |
#define | BUFFERSIZE (8*1024) |
#define | BWORD(p) (p->buffer + p->buffer_token) |
#define | LINESIZE 1024 |
#define | PLY_INT16_MAX INT16_MAX |
#define | PLY_INT16_MIN INT16_MIN |
#define | PLY_INT32_MAX INT32_MAX |
#define | PLY_INT32_MIN INT32_MIN |
#define | PLY_INT8_MAX INT8_MAX |
#define | PLY_INT8_MIN INT8_MIN |
#define | PLY_UINT16_MAX UINT16_MAX |
#define | PLY_UINT32_MAX UINT32_MAX |
#define | PLY_UINT8_MAX UINT8_MAX |
#define | WORDSIZE 256 |
Typedefs | |
typedef enum e_ply_io_mode_ | e_ply_io_mode |
typedef int(* | p_ply_ichunk) (p_ply ply, void *anydata, size_t size) |
typedef t_ply_idriver * | p_ply_idriver |
typedef int(* | p_ply_ihandler) (p_ply ply, double *value) |
typedef int(* | p_ply_ochunk) (p_ply ply, void *anydata, size_t size) |
typedef t_ply_odriver * | p_ply_odriver |
typedef int(* | p_ply_ohandler) (p_ply ply, double value) |
typedef struct t_ply_ | t_ply |
typedef struct t_ply_argument_ | t_ply_argument |
typedef struct t_ply_element_ | t_ply_element |
typedef struct t_ply_idriver_ | t_ply_idriver |
typedef int16_t | t_ply_int16 |
typedef int32_t | t_ply_int32 |
typedef int8_t | t_ply_int8 |
typedef struct t_ply_odriver_ | t_ply_odriver |
typedef struct t_ply_property_ | t_ply_property |
typedef uint16_t | t_ply_uint16 |
typedef uint32_t | t_ply_uint32 |
typedef uint8_t | t_ply_uint8 |
Enumerations | |
enum | e_ply_io_mode_ { PLY_READ, PLY_WRITE } |
Functions | |
static int | BREFILL (p_ply ply) |
static int | iascii_float32 (p_ply ply, double *value) |
static int | iascii_float64 (p_ply ply, double *value) |
static int | iascii_int16 (p_ply ply, double *value) |
static int | iascii_int32 (p_ply ply, double *value) |
static int | iascii_int8 (p_ply ply, double *value) |
static int | iascii_uint16 (p_ply ply, double *value) |
static int | iascii_uint32 (p_ply ply, double *value) |
static int | iascii_uint8 (p_ply ply, double *value) |
static int | ibinary_float32 (p_ply ply, double *value) |
static int | ibinary_float64 (p_ply ply, double *value) |
static int | ibinary_int16 (p_ply ply, double *value) |
static int | ibinary_int32 (p_ply ply, double *value) |
static int | ibinary_int8 (p_ply ply, double *value) |
static int | ibinary_uint16 (p_ply ply, double *value) |
static int | ibinary_uint32 (p_ply ply, double *value) |
static int | ibinary_uint8 (p_ply ply, double *value) |
static int | oascii_float32 (p_ply ply, double value) |
static int | oascii_float64 (p_ply ply, double value) |
static int | oascii_int16 (p_ply ply, double value) |
static int | oascii_int32 (p_ply ply, double value) |
static int | oascii_int8 (p_ply ply, double value) |
static int | oascii_uint16 (p_ply ply, double value) |
static int | oascii_uint32 (p_ply ply, double value) |
static int | oascii_uint8 (p_ply ply, double value) |
static int | obinary_float32 (p_ply ply, double value) |
static int | obinary_float64 (p_ply ply, double value) |
static int | obinary_int16 (p_ply ply, double value) |
static int | obinary_int32 (p_ply ply, double value) |
static int | obinary_int8 (p_ply ply, double value) |
static int | obinary_uint16 (p_ply ply, double value) |
static int | obinary_uint32 (p_ply ply, double value) |
static int | obinary_uint8 (p_ply ply, double value) |
int | ply_add_comment (p_ply ply, const char *comment) |
int | ply_add_element (p_ply ply, const char *name, long ninstances) |
int | ply_add_list_property (p_ply ply, const char *name, e_ply_type length_type, e_ply_type value_type) |
int | ply_add_obj_info (p_ply ply, const char *obj_info) |
int | ply_add_property (p_ply ply, const char *name, e_ply_type type, e_ply_type length_type, e_ply_type value_type) |
int | ply_add_scalar_property (p_ply ply, const char *name, e_ply_type type) |
static p_ply | ply_alloc (void) |
static e_ply_storage_mode | ply_arch_endian (void) |
static int | ply_check_line (p_ply ply) |
static int | ply_check_word (p_ply ply) |
int | ply_close (p_ply ply) |
p_ply | ply_create (const char *name, e_ply_storage_mode storage_mode, p_ply_error_cb error_cb, long idata, void *pdata) |
static void | ply_element_init (p_ply_element element) |
static void | ply_error_cb (p_ply ply, const char *message) |
static void | ply_ferror (p_ply ply, const char *fmt,...) |
static p_ply_element | ply_find_element (p_ply ply, const char *name) |
static p_ply_property | ply_find_property (p_ply_element element, const char *name) |
static int | ply_find_string (const char *item, const char *const list[]) |
static void | ply_finish_word (p_ply ply, size_t size) |
int | ply_get_argument_element (p_ply_argument argument, p_ply_element *element, long *instance_index) |
int | ply_get_argument_property (p_ply_argument argument, p_ply_property *property, long *length, long *value_index) |
int | ply_get_argument_user_data (p_ply_argument argument, void **pdata, long *idata) |
double | ply_get_argument_value (p_ply_argument argument) |
int | ply_get_element_info (p_ply_element element, const char **name, long *ninstances) |
const char * | ply_get_next_comment (p_ply ply, const char *last) |
p_ply_element | ply_get_next_element (p_ply ply, p_ply_element last) |
const char * | ply_get_next_obj_info (p_ply ply, const char *last) |
p_ply_property | ply_get_next_property (p_ply_element element, p_ply_property last) |
int | ply_get_ply_user_data (p_ply ply, void **pdata, long *idata) |
int | ply_get_property_info (p_ply_property property, const char **name, e_ply_type *type, e_ply_type *length_type, e_ply_type *value_type) |
static void * | ply_grow_array (p_ply ply, void **pointer, long *nmemb, long size) |
static p_ply_element | ply_grow_element (p_ply ply) |
static p_ply_property | ply_grow_property (p_ply ply, p_ply_element element) |
static void | ply_init (p_ply ply) |
p_ply | ply_open (const char *name, p_ply_error_cb error_cb, long idata, void *pdata) |
static void | ply_property_init (p_ply_property property) |
int | ply_read (p_ply ply) |
static int | ply_read_chunk (p_ply ply, void *anybuffer, size_t size) |
static int | ply_read_chunk_reverse (p_ply ply, void *anybuffer, size_t size) |
static int | ply_read_element (p_ply ply, p_ply_element element, p_ply_argument argument) |
int | ply_read_header (p_ply ply) |
static int | ply_read_header_comment (p_ply ply) |
static int | ply_read_header_element (p_ply ply) |
static int | ply_read_header_format (p_ply ply) |
static int | ply_read_header_magic (p_ply ply) |
static int | ply_read_header_obj_info (p_ply ply) |
static int | ply_read_header_property (p_ply ply) |
static int | ply_read_line (p_ply ply) |
static int | ply_read_list_property (p_ply ply, p_ply_element element, p_ply_property property, p_ply_argument argument) |
static int | ply_read_property (p_ply ply, p_ply_element element, p_ply_property property, p_ply_argument argument) |
static int | ply_read_scalar_property (p_ply ply, p_ply_element element, p_ply_property property, p_ply_argument argument) |
static int | ply_read_word (p_ply ply) |
static void | ply_reverse (void *anydata, size_t size) |
long | ply_set_read_cb (p_ply ply, const char *element_name, const char *property_name, p_ply_read_cb read_cb, void *pdata, long idata) |
static int | ply_type_check (void) |
int | ply_write (p_ply ply, double value) |
static int | ply_write_chunk (p_ply ply, void *anybuffer, size_t size) |
static int | ply_write_chunk_reverse (p_ply ply, void *anybuffer, size_t size) |
int | ply_write_header (p_ply ply) |
Variables | |
static t_ply_idriver | ply_idriver_ascii |
static t_ply_idriver | ply_idriver_binary |
static t_ply_idriver | ply_idriver_binary_reverse |
static t_ply_odriver | ply_odriver_ascii |
static t_ply_odriver | ply_odriver_binary |
static t_ply_odriver | ply_odriver_binary_reverse |
static const char *const | ply_storage_mode_list [] |
static const char *const | ply_type_list [] |
typedef enum e_ply_io_mode_ e_ply_io_mode |
typedef int(* p_ply_ichunk) (p_ply ply, void *anydata, size_t size) |
typedef t_ply_idriver* p_ply_idriver |
typedef int(* p_ply_ochunk) (p_ply ply, void *anydata, size_t size) |
typedef t_ply_odriver* p_ply_odriver |
typedef struct t_ply_argument_ t_ply_argument |
typedef struct t_ply_element_ t_ply_element |
typedef struct t_ply_idriver_ t_ply_idriver |
typedef int16_t t_ply_int16 |
typedef int32_t t_ply_int32 |
typedef int8_t t_ply_int8 |
typedef struct t_ply_odriver_ t_ply_odriver |
typedef struct t_ply_property_ t_ply_property |
typedef uint16_t t_ply_uint16 |
typedef uint32_t t_ply_uint32 |
typedef uint8_t t_ply_uint8 |
enum e_ply_io_mode_ |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int ply_add_element | ( | p_ply | ply, |
const char * | name, | ||
long | ninstances | ||
) |
int ply_add_list_property | ( | p_ply | ply, |
const char * | name, | ||
e_ply_type | length_type, | ||
e_ply_type | value_type | ||
) |
int ply_add_property | ( | p_ply | ply, |
const char * | name, | ||
e_ply_type | type, | ||
e_ply_type | length_type, | ||
e_ply_type | value_type | ||
) |
int ply_add_scalar_property | ( | p_ply | ply, |
const char * | name, | ||
e_ply_type | type | ||
) |
|
static |
p_ply ply_create | ( | const char * | name, |
e_ply_storage_mode | storage_mode, | ||
p_ply_error_cb | error_cb, | ||
long | idata, | ||
void * | pdata | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int ply_get_argument_element | ( | p_ply_argument | argument, |
p_ply_element * | element, | ||
long * | instance_index | ||
) |
int ply_get_argument_property | ( | p_ply_argument | argument, |
p_ply_property * | property, | ||
long * | length, | ||
long * | value_index | ||
) |
int ply_get_argument_user_data | ( | p_ply_argument | argument, |
void ** | pdata, | ||
long * | idata | ||
) |
double ply_get_argument_value | ( | p_ply_argument | argument | ) |
int ply_get_element_info | ( | p_ply_element | element, |
const char ** | name, | ||
long * | ninstances | ||
) |
const char* ply_get_next_comment | ( | p_ply | ply, |
const char * | last | ||
) |
p_ply_element ply_get_next_element | ( | p_ply | ply, |
p_ply_element | last | ||
) |
const char* ply_get_next_obj_info | ( | p_ply | ply, |
const char * | last | ||
) |
p_ply_property ply_get_next_property | ( | p_ply_element | element, |
p_ply_property | last | ||
) |
int ply_get_ply_user_data | ( | p_ply | ply, |
void ** | pdata, | ||
long * | idata | ||
) |
int ply_get_property_info | ( | p_ply_property | property, |
const char ** | name, | ||
e_ply_type * | type, | ||
e_ply_type * | length_type, | ||
e_ply_type * | value_type | ||
) |
|
static |
|
static |
|
static |
p_ply ply_open | ( | const char * | name, |
p_ply_error_cb | error_cb, | ||
long | idata, | ||
void * | pdata | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
long ply_set_read_cb | ( | p_ply | ply, |
const char * | element_name, | ||
const char * | property_name, | ||
p_ply_read_cb | read_cb, | ||
void * | pdata, | ||
long | idata | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |