mapping.c File Reference

Mapping module implementation file. More...

Include dependency graph for mapping.c:

Go to the source code of this file.

Functions

mcl_error_t mcl_mapping_initialize (mcl_mapping_t **mapping)
 
mcl_error_t mcl_mapping_set_parameter (mcl_mapping_t *mapping, E_MCL_MAPPING_PARAMETER parameter, const void *value)
 
mcl_error_t mapping_validate (mapping_t *mapping)
 
void mcl_mapping_destroy (mcl_mapping_t **mapping)
 

Detailed Description

Mapping module implementation file.

Definition in file mapping.c.

Function Documentation

mcl_error_t mapping_validate ( mapping_t mapping)

This function checks whether all mandatory parameters of a mapping are set or not.

Parameters
[in]mappingMapping to validate.
Returns

Definition at line 87 of file mapping.c.

References mapping_t::data_point_id, MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_INVALID_PARAMETER, MCL_NULL, MCL_OK, mapping_t::property_name, and mapping_t::property_set_name.

Referenced by connectivity_processor_create_mapping().

Here is the caller graph for this function:

void mcl_mapping_destroy ( mcl_mapping_t **  mapping)

This function destroys mapping data structure.

Parameters
[in]mappingMapping handle which is going to be destroyed.

Definition at line 103 of file mapping.c.

References MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_FREE, and MCL_NULL.

mcl_error_t mcl_mapping_initialize ( mcl_mapping_t **  mapping)

This function creates and initializes a data struct of mcl_mapping_t.

Parameters
[out]mappingMapping handle which is going to be initialized.
Returns

Definition at line 14 of file mapping.c.

References MCL_ASSERT_NOT_NULL, MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_ERROR_STRING, MCL_FUNCTION_LEAVE_LABEL, MCL_NEW, MCL_NULL, MCL_OK, MCL_OUT_OF_MEMORY, and MCL_TRUE.

mcl_error_t mcl_mapping_set_parameter ( mcl_mapping_t mapping,
E_MCL_MAPPING_PARAMETER  parameter,
const void *  value 
)

This function is used to set a parameter of a mapping.

Parameters
[in]mappingMapping to set its parameter.
[in]parameterOne of the parameters listed in E_MCL_MAPPING_PARAMETER.
[in]valueNew value of the parameter.
Returns

Definition at line 44 of file mapping.c.

References MCL_ASSERT_NOT_NULL, MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_FUNCTION_LEAVE_LABEL, MCL_INVALID_PARAMETER, MCL_MAPPING_PARAMETER_DATA_POINT_ID, MCL_MAPPING_PARAMETER_ENTITY_ID, MCL_MAPPING_PARAMETER_KEEP_MAPPING, MCL_MAPPING_PARAMETER_PROPERTY_NAME, MCL_MAPPING_PARAMETER_PROPERTY_SET_NAME, MCL_OK, and mcl_string_util_reset().

Here is the call graph for this function: