Service Development Help : Building C/C++ Services : C/C++ Service Editor : Source Tab : Protected Sections of a C/C++ Service
Protected Sections of a C/C++ Service
The C/C++ service editor protects certain sections of the C/C++ service and marks these sections by highlighting them in a different color. By default, it uses gray for the shading but you can update your preferences to select a different color. For more information, see Java/C Service Editors Preferences. The sections of the C/C++ service that the C/C++ service editor protects are:
*Package definition, which is the required code that defines the Java package for the C/C++ service.
*Class definition, which is the required code that defines the final class for the C/C++ service.
*Primary method definition, which is the required code that defines the static and final method for the C/C++ service. It defines a single input parameter, a Values object.
The Values object is the universal container that services use to receive input from and deliver output to other programs. It contains an ordered collection of key/value pairs on which a service operates. A Values object can contain any number of key/values pairs.
You define the data to pass into the service via the Values object by defining input parameters on the Input/Output tab of the editor. You add code to the primary method that modifies the key/value pairs contained in the Values object. The Values object then becomes the output of the service. The service returns the output parameters you define on the Input/Output tab.
*Final brace “}”. The C/C++ service editor does not allow you to add code after the final brace “}”.
C/C++ Service Editor
Source Tab
Editable Sections of a C/C++ Service
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback