Data Acquisition Framework
API for Tags Programming
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Modules
Classes | Typedefs | Enumerations | Functions
TagV2.h File Reference

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

tagtag_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...
 

Detailed Description

Tag object.

Enumeration Type Documentation

Tag value type.

Enumerator
TAG_VALUE_TYPE_INT 

Integer

TAG_VALUE_TYPE_UINT 

Unsigned Integer

TAG_VALUE_TYPE_DOUBLE 

Double

TAG_VALUE_TYPE_STRING 

String

TAG_VALUE_TYPE_BYTEARRAY 

Byte Array