Data Acquisition Framework
API for Tags Programming
|
Tag object. More...
#include <stdint.h>
Go to the source code of this file.
Classes | |
union | value_t |
Value. More... | |
Typedefs | |
typedef struct tag_ | tag |
Tag instance. | |
typedef void(* | on_tag )(tag *self, const char *equipment_name, const char *tag_name, value_t *value, value_type_t value_type, const char *unit, const char *time) |
Subscribe to callback function. More... | |
Enumerations | |
enum | value_type_t { TAG_VALUE_TYPE_INT, TAG_VALUE_TYPE_UINT, TAG_VALUE_TYPE_DOUBLE, TAG_VALUE_TYPE_STRING, TAG_VALUE_TYPE_BYTEARRAY } |
Tag value type. More... | |
Functions | |
tag * | tag_new () |
Create a tag. More... | |
void | tag_delete (tag *self) |
Delete a tag instance. More... | |
int | tag_publish (tag *self, const char *equipment_name, const char *tag_name, value_t *value, value_type_t value_type, const char *unit, const char *time) |
Publish a tag. More... | |
int | tag_subscribe (tag *self, const char *equipment_name, const char *tag_name) |
Subscribe to a tag. More... | |
int | tag_unsubscribe (tag *self, const char *equipment_name, const char *tag_name) |
Unsubscribe from a tag. More... | |
int | tag_subscribe_callback (tag *self, on_tag) |
Set the subscribe-callback function. More... | |
Tag object.
enum value_type_t |