Dealing with reflection


Typedefs

typedef xf_refl_s xf_refl_t
 Reflection Class.

Functions

xf_refl_txf_refl_new (char *name, int size, char *version, xf_descr_list_t *pdescr, void *userdata)
 Constructor.
void xf_refl_setuserdata (xf_refl_t *prefl, void *puserdata)
 set userdata
void * xf_refl_getuserdata (xf_refl_t *prefl)
 get userdata
char * xf_refl_getname (xf_refl_t *prefl)
 get name of reflection

Typedef Documentation

typedef struct xf_refl_s xf_refl_t

Reflection Class.

This structure contains the complete reflection information for a class


Function Documentation

char* xf_refl_getname ( xf_refl_t prefl  ) 

get name of reflection

Parameters:
prefl The reflection object to get the name from

void* xf_refl_getuserdata ( xf_refl_t prefl  ) 

get userdata

Parameters:
prefl The reflection object to get the userdata from
Returns:
  • Userdata
  • Null: Error or no Userdata

xf_refl_t* xf_refl_new ( char *  name,
int  size,
char *  version,
xf_descr_list_t pdescr,
void *  userdata 
)

Constructor.

The constructor creates a reflection object for some class

Parameters:
name Name of reflection
size Size of class object
version Version of Class defintion in format <major>.<minor>
pdescr Description List of class
userdata some userdata associated with reflection
See also:
description
Returns:
  • Reflection object

void xf_refl_setuserdata ( xf_refl_t prefl,
void *  puserdata 
)

set userdata

Parameters:
prefl The reflection object to set the userdata
puserdata The userdata


Generated on 4 Mar 2014 for xfer by  doxygen 1.4.7