Timeseries value module implementation file. More...
#include "mcl_connectivity/mcl_timeseries_value.h"
#include "timeseries_value.h"
#include "mcl_core/mcl_memory.h"
#include "mcl_core/mcl_string_util.h"
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) |
Timeseries value module implementation file.
Definition in file timeseries_value.c.
void mcl_timeseries_value_destroy | ( | mcl_timeseries_value_t ** | timeseries_value | ) |
This function destroys timeseries_value
.
[in] | timeseries_value | mcl_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().
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.
[out] | timeseries_value | Initialized mcl_timeseries_value_t object handle. |
timeseries_value
is null. 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.
[in] | timeseries_value | Timeseries value to set its parameter. |
[in] | parameter | One of the parameters listed in E_MCL_TIMESERIES_VALUE_PARAMETER. |
[in] | value | New value of the parameter . |
timeseries_value
or value
is NULL. parameter
is invalid. 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.
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.
[in] | timeseries_value | Timeseries value to validate. |
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().