The FeatureExamples directory contains example code covering most of the features of Sybase CEP Engine. The directory contains both CCL and SDK examples, and each source code file includes embedded comments to explain the logic of the example.
To examine and run the CCL examples, load them into Sybase CEP Studio (see the Sybase CEP Studio Guide for more information) or Eclipse (see the Sybase CEP Eclipse Plug-In Guide for more information).
The examples in FeatureExamples are organized into the following subdirectories:
Adapters: These examples demonstrate how to use adapters that Sybase CEP provides as well as how to use the provided SDKs to build in-process (C) and out-of-process (C, Java 1.5, .NET3, Perl, and Python) adapter. Use the make file found directly under FeatureExamples to compile the source code for the SDK examples. The file readme.txt under InProcess and OutOfProcess contains complete instructions.
Basic: These examples demonstrate basic Sybase CEP Engine features with CCL.
DatabasesAndRPC: These examples show how to interact with databases and remote procedures. Some external setup needs to be performed in order for these examples to work. Complete setup instructions are listed in the comments in the specific CCL modules.
FunctionsAndOperators: These examples demonstrate the Sybase CEP predefined functions and operators, as well as showing how to define your own function with the C/C++ SDK. Use the make file found directly under FeatureExamples to compile the source code for the SDK examples. The file readme.txt under UserDefinedFunctions contains complete instructions.
Patterns: These examples illustrate event pattern matching with CCL.
XML: These examples demonstrate XML parsing with Sybase CEP Engine and are explained in detail in the technical article Sybase CEP XML Cookbook.
Windows: These examples demonstrate different types of windows, including public windows, and a variety of ways that the contents of windows can be used and manipulated.