Sybase CEP provides several header (.h) files. These files help users to declare variables as data types in a platform-independent way, and also contain the function prototypes of the server and SDK library functions that users may call. The header file c8types.h provides the data type information.
The API has been divided into the following major sections:
Schema: The Schema API provides meta-information about the data. Information such as the number, names and types of columns are accessible. The schema API is applicable both to in-process adapters and out-of-process adapters, and was described in section Schema API.
Message: Data routing in the Sybase CEP Engine is performed in terms of data packets called messages. A message contains a row of information matching the schema. The API includes functions that give you information about messages. The message API is applicable both to in-process adapters and out-of-process adapters, and was described in section Message API.
In-process Adapter: Every adapter provides an access point for a message to enter or exit the Sybase CEP Engine. Each adapter runs in its own thread. The adapter callbacks (the initialize(), execute(), and shutdown() functions) are always called from this thread.
Server: This contains a few useful functions.
Most in-process adapter code includes:
#include "c8types.h" #include "c8adapter_in_process.h" #include "c8conversions.h" #include "c8server.h"
Sybase CEP also provides a set of functions that convert between strings and 's internal data types such as TIMESTAMP, FLOAT, and so on.