Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Files | Macros | Functions

Files

file  afw_data_type_impl_declares.h
 Interface afw_interface implementation declares.
 

Macros

#define __AFW_DATA_TYPE_IMPL_DECLARES_H__   1
 
#define _AFW_IMPLEMENTATION_ID_   "unspecified"
 
#define _AFW_IMPLEMENTATION_SPECIFIC_   NULL
 
#define _AFW_IMPLEMENTATION_SOURCE_FILE_   __FILE__
 

Functions

 impl_afw_data_type_internal_to_utf8 (const afw_data_type_t *instance, const void *from_internal, const afw_pool_t *p, afw_xctx_t *xctx)
 
 impl_afw_data_type_utf8_to_internal (const afw_data_type_t *instance, void *to_internal, const afw_utf8_t *from_utf8, const afw_pool_t *p, afw_xctx_t *xctx)
 
 impl_afw_data_type_compare_internal (const afw_data_type_t *instance, const void *internal1, const void *internal2, afw_xctx_t *xctx)
 
 impl_afw_data_type_convert_internal (const afw_data_type_t *instance, void *to_internal, const void *from_internal, const afw_data_type_t *to_data_type, const afw_pool_t *p, afw_xctx_t *xctx)
 
 impl_afw_data_type_clone_internal (const afw_data_type_t *instance, void *to_internal, const void *from_internal, const afw_pool_t *p, afw_xctx_t *xctx)
 
 impl_afw_data_type_value_compiler_listing (const afw_data_type_t *instance, const afw_writer_t *writer, const afw_value_t *value, afw_xctx_t *xctx)
 
 impl_afw_data_type_write_as_expression (const afw_data_type_t *instance, const afw_writer_t *writer, const void *from_internal, afw_xctx_t *xctx)
 

Detailed Description

This file should only be included in c source files that implement interface afw_data_type.

You can find a skeleton for using this #include file in the corresponding source directory in file generated/interface_closet/skeleton_afw_data_type.c.

Mutiple *_impl.declares.h can be included in each c source file, but only one for each interface name.

After the #include for afw_data_type_impl_declares.h:

  1. declarations will exist for all of the interfaces methods with names of impl_afw_data_type_ followed by the method name.
  2. rti will be defined with a name of impl_afw_data_type_rti.
  3. inf will be defined with a name of impl_afw_data_type_inf.

Before including, define the following symbols:

Example:

static const sometype_t impl_myimpl_stuff = {
...
};
#define AFW_IMPLEMENTATION_ID "myimpl"
#define AFW_IMPLEMENTATION_SPECIFIC &impl_myimpl_stuff
A second #include "afw_data_type_impl_declares.h" can be specified if
" * #define "AFW_DATA_TYPE_INF_ONLY" is specified to generate inf only."
Interface afw_interface implementation declares.