|
DTNMA Reference Tools v2.1.0 - 13.gc5c0bac
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
#include "agent.h"#include "valprod.h"#include "refda/amm/edd.h"#include <cace/amm/lookup.h>#include <cace/ari.h>
Include dependency graph for edd_prod_ctx.h:
This graph shows which files directly or indirectly include this file:Data Structures | |
| struct | refda_edd_prod_ctx_t |
| Context for CTRL execution activities. More... | |
Macros | |
| #define | REFDA_EDD_PROD_RESULT_TYPE_NOMATCH 2 |
Functions | |
| void | refda_edd_prod_ctx_init (refda_edd_prod_ctx_t *obj, const refda_amm_edd_desc_t *edd, refda_valprod_ctx_t *prodctx) |
| Initialize a context based on an object reference ARI and a target object's formal parameters. | |
| void | refda_edd_prod_ctx_deinit (refda_edd_prod_ctx_t *obj) |
| bool | refda_edd_prod_ctx_has_aparam_undefined (const refda_edd_prod_ctx_t *ctx) |
| Determine if any actual parameter is undefined. | |
| const cace_ari_t * | refda_edd_prod_ctx_get_aparam_index (const refda_edd_prod_ctx_t *ctx, size_t index) |
| Get an actual parameter for this production. | |
| const cace_ari_t * | refda_edd_prod_ctx_get_aparam_name (const refda_edd_prod_ctx_t *ctx, const char *name) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| int | refda_edd_prod_ctx_set_result_copy (refda_edd_prod_ctx_t *ctx, const cace_ari_t *value) |
| Set the result for a value production. | |
| int | refda_edd_prod_ctx_set_result_move (refda_edd_prod_ctx_t *ctx, cace_ari_t *value) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| #define REFDA_EDD_PROD_RESULT_TYPE_NOMATCH 2 |
| void refda_edd_prod_ctx_deinit | ( | refda_edd_prod_ctx_t * | obj | ) |
References CHKVOID.
| const cace_ari_t * refda_edd_prod_ctx_get_aparam_index | ( | const refda_edd_prod_ctx_t * | ctx, |
| size_t | index | ||
| ) |
Get an actual parameter for this production.
| [in] | ctx | The production context. |
| [in] | index | The index into the parameter list. |
References cace_amm_lookup_t::aparams, CHKNULL, refda_valprod_ctx_t::deref, cace_ari_itemized_t::ordered, and refda_edd_prod_ctx_t::prodctx.
Referenced by refda_adm_ietf_dtnma_agent_edd_const_list(), refda_adm_ietf_dtnma_agent_edd_sbr_list(), refda_adm_ietf_dtnma_agent_edd_tbr_list(), refda_adm_ietf_dtnma_agent_edd_typedef_list(), refda_adm_ietf_dtnma_agent_edd_var_list(), test_reporting_edd_one_int(), and test_reporting_edd_one_int().
| const cace_ari_t * refda_edd_prod_ctx_get_aparam_name | ( | const refda_edd_prod_ctx_t * | ctx, |
| const char * | name | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References cace_amm_lookup_t::aparams, CHKNULL, refda_valprod_ctx_t::deref, cace_ari_itemized_t::named, and refda_edd_prod_ctx_t::prodctx.
| bool refda_edd_prod_ctx_has_aparam_undefined | ( | const refda_edd_prod_ctx_t * | ctx | ) |
Determine if any actual parameter is undefined.
| [in] | ctx | The production context. |
References cace_ari_itemized_t::any_undefined, cace_amm_lookup_t::aparams, CHKFALSE, refda_valprod_ctx_t::deref, and refda_edd_prod_ctx_t::prodctx.
| void refda_edd_prod_ctx_init | ( | refda_edd_prod_ctx_t * | obj, |
| const refda_amm_edd_desc_t * | edd, | ||
| refda_valprod_ctx_t * | prodctx | ||
| ) |
Initialize a context based on an object reference ARI and a target object's formal parameters.
| [out] | obj | The context to initialize. |
| [in] | edd | The EDD descriptor to produce from. |
| [in,out] | prodctx | The production state. The result must outlive this context. |
References CHKVOID, refda_edd_prod_ctx_t::edd, and refda_edd_prod_ctx_t::prodctx.
Referenced by refda_valprod_edd_run().
| int refda_edd_prod_ctx_set_result_copy | ( | refda_edd_prod_ctx_t * | ctx, |
| const cace_ari_t * | value | ||
| ) |
Set the result for a value production.
| [in,out] | ctx | The context to update. |
| [in] | value | The value to use as the production result. |
References cace_ari_set_copy(), CHKERR1, refda_edd_prod_ctx_t::prodctx, refda_edd_prod_check_result(), and refda_valprod_ctx_t::value.
Referenced by test_reporting_edd_one_int(), and test_reporting_edd_one_int().
| int refda_edd_prod_ctx_set_result_move | ( | refda_edd_prod_ctx_t * | ctx, |
| cace_ari_t * | value | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References cace_ari_set_move(), CHKERR1, refda_edd_prod_ctx_t::prodctx, refda_edd_prod_check_result(), and refda_valprod_ctx_t::value.
Referenced by refda_adm_ietf_alarms_edd_alarm_list(), refda_adm_ietf_alarms_edd_category_inventory(), refda_adm_ietf_alarms_edd_resource_inventory(), refda_adm_ietf_dtnma_agent_acl_edd_access_list(), refda_adm_ietf_dtnma_agent_acl_edd_current_groups(), refda_adm_ietf_dtnma_agent_acl_edd_group_list(), refda_adm_ietf_dtnma_agent_edd_capability(), refda_adm_ietf_dtnma_agent_edd_const_list(), refda_adm_ietf_dtnma_agent_edd_exec_running(), refda_adm_ietf_dtnma_agent_edd_last_msg_rx_time(), refda_adm_ietf_dtnma_agent_edd_num_exec_failed(), refda_adm_ietf_dtnma_agent_edd_num_exec_started(), refda_adm_ietf_dtnma_agent_edd_num_exec_succeeded(), refda_adm_ietf_dtnma_agent_edd_num_msg_rx(), refda_adm_ietf_dtnma_agent_edd_num_msg_rx_failed(), refda_adm_ietf_dtnma_agent_edd_num_msg_tx(), refda_adm_ietf_dtnma_agent_edd_num_msg_tx_failed(), refda_adm_ietf_dtnma_agent_edd_odm_list(), refda_adm_ietf_dtnma_agent_edd_sbr_list(), refda_adm_ietf_dtnma_agent_edd_sw_vendor(), refda_adm_ietf_dtnma_agent_edd_sw_version(), refda_adm_ietf_dtnma_agent_edd_tbr_list(), refda_adm_ietf_dtnma_agent_edd_typedef_list(), refda_adm_ietf_dtnma_agent_edd_var_list(), test_reporting_edd_int(), and test_reporting_edd_one_int().