owwl_data_ Struct Reference

Structure used to hold a data item. More...

#include <owwl.h>

List of all members.

Public Attributes

int device_type
device_data_union device_data
int device_subtype
int index
int in_use
void * user_data
char *(* str )(struct owwl_data_ *self, char *buffer, int bufflen, int unit_type, int precision, int arg)
double(* val )(struct owwl_data_ *self, int unit_type, int arg)


Detailed Description

Structure used to hold a data item.

Data are stored in an array of "owwl_data". Each item contains a union of data structures for the various data types. Functions to convert data to strings or doubles are provided.


Member Data Documentation

device_data_union owwl_data_::device_data
 

A union of all possible device data structures

int owwl_data_::device_subtype
 

Some devices have sub-types. For example, a temperature might come from a hygrometer

int owwl_data_::device_type
 

The type of device held in the struct

int owwl_data_::in_use
 

Is this an up-to-date in-use data item?

int owwl_data_::index
 

The index value, running from 0, e.g. thermometer 0, &c.

char*(* owwl_data_::str)(struct owwl_data_ *self, char *buffer, int bufflen, int unit_type, int precision, int arg)
 

Function to convert one arg of the data item to a string, with given unit type and precision

void* owwl_data_::user_data
 

For unspecified use by user program

double(* owwl_data_::val)(struct owwl_data_ *self, int unit_type, int arg)
 

Function to convert one arg of the data item to a double, with given unit type


The documentation for this struct was generated from the following file:
Generated on Fri Aug 11 19:46:55 2006 for owwl by  doxygen 1.4.6