Apama  9.12.0.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sag_connectivity_c.h File Reference

Contains the C ABI for connectivity plugins. More...

#include <stdbool.h>
#include <stdint.h>
#include <sag_internal/c_macros.hpp>
#include <sag_internal/c_types.hpp>
#include <sag_internal/c_functions.hpp>

Go to the source code of this file.

Classes

struct  sag_underlying_decimal_t
 Decimals are implemented with an underlying 64bit int conforming to IEEE 754 decimal 64. More...
 

Enumerations

enum  sag_data_tag {
  SAG_DATA_EMPTY, SAG_DATA_BOOLEAN, SAG_DATA_DOUBLE, SAG_DATA_INTEGER,
  SAG_DATA_DECIMAL, SAG_DATA_STRING, SAG_DATA_LIST, SAG_DATA_MAP,
  SAG_DATA_BUFFER, SAG_DATA_CUSTOM
}
 A descriminator for the content of the data_t union. More...
 
enum  sag_error_t { SAG_ERROR_OK, SAG_ERROR_EXCEPTION, SAG_ERROR_FAILED, SAG_ERROR_UNKNOWN }
 Indicates error states returned from methods. More...
 
enum  sag_log_level_t {
  SAG_LOG_CRIT, SAG_LOG_FATAL, SAG_LOG_ERROR, SAG_LOG_WARN,
  SAG_LOG_INFO, SAG_LOG_DEBUG, SAG_LOG_TRACE
}
 Log levels for logging to the system log. More...
 

Detailed Description

Contains the C ABI for connectivity plugins.

Users should use the C++ wrapper classes in sag_connectivity_cpp.hpp

Enumeration Type Documentation

A descriminator for the content of the data_t union.

Enumerator
SAG_DATA_EMPTY 

Empty.

SAG_DATA_BOOLEAN 

Bool.

SAG_DATA_DOUBLE 

64-bit float

SAG_DATA_INTEGER 

64-bit signed int

SAG_DATA_DECIMAL 

64-bit IEEE-754 decimal

SAG_DATA_STRING 

utf8-encoded const char*

SAG_DATA_LIST 

list of data

SAG_DATA_MAP 

map of data:data

SAG_DATA_BUFFER 

byte-array (8-bit signed int)

SAG_DATA_CUSTOM 

a void* + deleter and copy function pointers

Indicates error states returned from methods.

Enumerator
SAG_ERROR_OK 

No error.

SAG_ERROR_EXCEPTION 

An exception was thrown.

SAG_ERROR_FAILED 

Other failure condition.

SAG_ERROR_UNKNOWN 

Unknown state.

Log levels for logging to the system log.

Enumerator
SAG_LOG_CRIT 

Critical log messages.

SAG_LOG_FATAL 

Fatal errors.

SAG_LOG_ERROR 

Non-fatal errors.

SAG_LOG_WARN 

Warnings.

SAG_LOG_INFO 

Informational messages (default)

SAG_LOG_DEBUG 

Debug messages.

SAG_LOG_TRACE 

Trace.