IBM Streams 4.2.1
Creating an SPL project and an operator model for a C++ operator
An SPL project represents an SPL toolkit. Create an SPL project to store toolkit artifacts that are required for defining a C++ operator. The SPL project also contains the SPL application for running and testing the C++ operator.
Procedure
Results
When you create a primitive operator, the C++ Primitive Operator wizard generates the following artifacts. As an SPL application developer, you must edit these resources when you implement the C++ primitive operator.
- Operator model
- The operator model is an XML file that defines the attributes of the C++ operator. The operator model of the C++ operator is named as operator-name.xml and is generated in the namespace/operator/ directory.
- Operator templates
- The operator templates are the header and implementation files (*.cgt) that contain the operator logic. These files are generated in the namespace/operator/ directory.
- Subdirectories to store the implementation of the C++ operator
- Under the impl directory, a set of subdirectories is generated to store the implementation of the C++ operator:
- impl/bin. This directory is used to store the binary files (*.o files) that are built.
- impl/include. This directory is used to store the *.hpp files.
- impl/lib. This directory is used to store the shared libraries (.so files) that are built for the C++ operator.
- impl/src. This directory is used to store the *.cpp files.