#include <Integra/integra_bridge.h>#include <Integra/integra_id.h>#include <Integra/integra_model.h>#include <Integra/integra_value.h>Go to the source code of this file.
Data Structures | |
| struct | ntg_attribute_list_ |
| struct | ntg_instance_attribute_ |
| Linked list node for (instance) attributes. More... | |
Typedefs | |
| typedef struct ntg_attribute_list_ | ntg_attribute_list |
| typedef struct ntg_instance_attribute_ | ntg_instance_attribute |
| Linked list node for (instance) attributes. | |
Functions | |
| ntg_instance_attribute * | ntg_instance_attribute_add (ntg_instance_attribute *list_node, char *name, int index, ntg_value *value) |
| Add an attribute to an instance. | |
| void | ntg_instance_attribute_set_name (ntg_instance_attribute *list_node, char *name) |
| Set the name of an attribute. | |
| void | ntg_instance_attribute_set_value (ntg_instance_attribute *list_node, const ntg_value *value) |
| Set the value of an attribute. | |
| ntg_value * | ntg_instance_attribute_get_value (ntg_instance_attribute *list_node) |
| Get the value of an attribute. | |
| void | ntg_instance_attribute_set_default_value (ntg_instance_attribute **list_node, ntg_default_value *default_value, const int type_code) |
| Set the default value of an attribute. | |
| void | ntg_instance_attribute_set_index (ntg_instance_attribute *list_node, int index) |
| Set the index of an attribute. | |
| int | ntg_instance_attribute_get_index (ntg_instance_attribute *list_node) |
| Get the index of an attribute. | |
| void | ntg_instance_attribute_print (ntg_instance_attribute *attribute) |
| Prints one attribute to stdout. | |
| void | ntg_instance_attributes_print_all (ntg_instance_attribute *list_node) |
| Prints all attributes to stdout. | |
| int | ntg_instance_attributes_free (ntg_instance_attribute *list_node) |
| Free an attribute list. | |
| void | ntg_instance_attribute_send_value (ntg_instance_attribute *attribute, ntg_id instance_id, ntg_bridge_interface *bridge) |
| Send attribute value to module host. | |
| typedef struct ntg_attribute_list_ ntg_attribute_list |
| typedef struct ntg_instance_attribute_ ntg_instance_attribute |
Linked list node for (instance) attributes.
| ntg_instance_attribute* ntg_instance_attribute_add | ( | ntg_instance_attribute * | list_node, | |
| char * | name, | |||
| int | index, | |||
| ntg_value * | value | |||
| ) |
Add an attribute to an instance.
References ntg_instance_attribute_::index, ntg_instance_attribute_::name, ntg_instance_attribute_::next, ntg_instance_attribute_set_value(), and ntg_malloc().
| int ntg_instance_attribute_get_index | ( | ntg_instance_attribute * | list_node | ) |
Get the index of an attribute.
References ntg_instance_attribute_::index.
| ntg_value* ntg_instance_attribute_get_value | ( | ntg_instance_attribute * | list_node | ) |
Get the value of an attribute.
References ntg_instance_attribute_::value.
Referenced by ntg_server_fix_connections().
| void ntg_instance_attribute_print | ( | ntg_instance_attribute * | attribute | ) |
Prints one attribute to stdout.
References ntg_instance_attribute_::index, ntg_instance_attribute_::name, ntg_value_sprintf(), and ntg_instance_attribute_::value.
Referenced by ntg_instance_attributes_print_all().
| void ntg_instance_attribute_send_value | ( | ntg_instance_attribute * | attribute, | |
| ntg_id | instance_id, | |||
| ntg_bridge_interface * | bridge | |||
| ) |
Send attribute value to module host.
References ntg_port_::attribute_name, ntg_port_::module_id, ntg_instance_attribute_::name, ntg_bridge_interface::send_value, and ntg_instance_attribute_::value.
| void ntg_instance_attribute_set_default_value | ( | ntg_instance_attribute ** | list_node, | |
| ntg_default_value * | default_value, | |||
| const int | type_code | |||
| ) |
Set the default value of an attribute.
References ntg_value_::ctype, ntg_value_::ctype_::f, _ntg_default_value::float_, ntg_value_::ctype_::i, _ntg_default_value::integer_, NTG_FLOAT, NTG_INTEGER, ntg_malloc(), ntg_print_error(), NTG_STRING, ntg_value_::ctype_::s, _ntg_default_value::string_, and ntg_value_::type.
Referenced by ntg_new().
| void ntg_instance_attribute_set_index | ( | ntg_instance_attribute * | list_node, | |
| int | index | |||
| ) |
Set the index of an attribute.
| void ntg_instance_attribute_set_name | ( | ntg_instance_attribute * | list_node, | |
| char * | name | |||
| ) |
Set the name of an attribute.
References ntg_instance_attribute_::name, and ntg_malloc().
| void ntg_instance_attribute_set_value | ( | ntg_instance_attribute * | list_node, | |
| const ntg_value * | value | |||
| ) |
Set the value of an attribute.
References ntg_value_copy(), ntg_value_::type, and ntg_instance_attribute_::value.
Referenced by ntg_instance_attribute_add(), ntg_server_fix_connections(), and ntg_set().
| int ntg_instance_attributes_free | ( | ntg_instance_attribute * | list_node | ) |
Free an attribute list.
References ntg_instance_attribute_::name, ntg_instance_attribute_::next, and ntg_free().
Referenced by ntg_instance_free().
| void ntg_instance_attributes_print_all | ( | ntg_instance_attribute * | list_node | ) |
Prints all attributes to stdout.
References ntg_instance_attribute_::name, ntg_instance_attribute_::next, and ntg_instance_attribute_print().
1.6.1