Sample Code Settings

The Sample Code Settings window allows you to control the name of parameters when the C++ Expert generates sample code.

You can display this window by choosing Settings->Sample Code from the Main Window menu bar, or by clicking the Settings button on the toolbar in the Main Window and choosing the Sample Code tab.


 

Fields

The following table describes the fields on the Sample Code Settings window.

Table 7-10 Fields on the Sample Code Settings window

Field Description

Generate Sample Code

When this checkbox is enabled, generated sample code is displayed in the Sample Application Code panel on the Main window. If this checkbox is not enabled, the other fields on this window may not be modified.

Sample Code Generation panel

Parameter Name Prefix panel

You can modify the parameter name generation for each parameter type by changing the default prefix. Each prefix can contain no more than five characters. You may only use letters, numbers and underscores in a prefix.

char
prefix for characters

short
prefix for short integers

long
prefix for long integers

float
prefix for floating point values

double
prefix for double precision integers

string
prefix for text strings

structure
prefix for structures

interface
prefix for interface classes

service reply
prefix for service reply classes


 

See Also

Using Repository Tree Objects task description.