timeseries_value.c File Reference

Timeseries value module implementation file. More...

Include dependency graph for timeseries_value.c:

Go to the source code of this file.

Functions

mcl_error_t mcl_timeseries_value_initialize (mcl_timeseries_value_t **timeseries_value)
 
mcl_error_t mcl_timeseries_value_set_parameter (mcl_timeseries_value_t *timeseries_value, E_MCL_TIMESERIES_VALUE_PARAMETER parameter, const void *value)
 
mcl_error_t timeseries_value_validate (timeseries_value_t *timeseries_value)
 
void mcl_timeseries_value_destroy (mcl_timeseries_value_t **timeseries_value)
 

Detailed Description

Timeseries value module implementation file.

Definition in file timeseries_value.c.

Function Documentation

void mcl_timeseries_value_destroy ( mcl_timeseries_value_t **  timeseries_value)

This function destroys timeseries_value.

Parameters
[in]timeseries_valuemcl_timeseries_value_t object handle that will be destroyed.

Definition at line 84 of file timeseries_value.c.

References MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_FREE, and MCL_NULL.

Referenced by mcl_timeseries_value_list_destroy().

Here is the caller graph for this function:

mcl_error_t mcl_timeseries_value_initialize ( mcl_timeseries_value_t **  timeseries_value)

This function creates and initializes a data struct of mcl_timeseries_value_t.

Parameters
[out]timeseries_valueInitialized mcl_timeseries_value_t object handle.
Returns

Definition at line 14 of file timeseries_value.c.

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

mcl_error_t mcl_timeseries_value_set_parameter ( mcl_timeseries_value_t timeseries_value,
E_MCL_TIMESERIES_VALUE_PARAMETER  parameter,
const void *  value 
)

This function is used to set a parameter of a timeseries value.

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

Definition at line 36 of file timeseries_value.c.

References MCL_ASSERT_NOT_NULL, MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_FUNCTION_LEAVE_LABEL, MCL_INVALID_PARAMETER, mcl_string_util_reset(), MCL_TIMESERIES_VALUE_PARAMETER_DATA_POINT_ID, MCL_TIMESERIES_VALUE_PARAMETER_QUALITY_CODE, and MCL_TIMESERIES_VALUE_PARAMETER_VALUE.

Here is the call graph for this function:

mcl_error_t timeseries_value_validate ( timeseries_value_t timeseries_value)

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

Parameters
[in]timeseries_valueTimeseries value to validate.
Returns

Definition at line 71 of file timeseries_value.c.

References timeseries_value_t::data_point_id, MCL_ASSERT_CODE_MESSAGE, MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_INVALID_PARAMETER, MCL_NULL, MCL_OK, timeseries_value_t::quality_code, and timeseries_value_t::value.

Referenced by timeseries_value_list_validate().

Here is the caller graph for this function: