/mnt/hgfs/jamie_On_My_Mac/store/version_control/svn/integralive/library/trunk/Integra/integra_attribute.h File Reference

#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_attributentg_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_valuentg_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 Documentation

Linked list node for (instance) attributes.


Function Documentation

ntg_instance_attribute* ntg_instance_attribute_add ( ntg_instance_attribute list_node,
char *  name,
int  index,
ntg_value value 
)
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  ) 
void ntg_instance_attribute_send_value ( ntg_instance_attribute attribute,
ntg_id  instance_id,
ntg_bridge_interface bridge 
)
void ntg_instance_attribute_set_default_value ( ntg_instance_attribute **  list_node,
ntg_default_value default_value,
const int  type_code 
)
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 
)
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  ) 

Generated on Tue Jan 5 14:02:28 2010 for LibIntegra by  doxygen 1.6.1