[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


New Member Function Wizard

The New Member Function wizard is divided into the following steps:

1. Describe the declaration of the new member function.

2. Specify file locations for the new member function.

New Member Function wizard - Member Function Declaration:

To use the New Member Function wizard, follow these steps:

1. Describe the declaration of the new member function.

This section of the wizard, shown in Figure 7.16, lets you specify the name, return type, and parameters for the new member function. Other options are available to further describe the function.

This section includes the following parts:


Name

Type a name for the member function in this field.


Return Type

Enter an appropriate function return type in this field.


Namespaces required for parameters (optional)

If you wish, type a list of function parameters in this field. Example parameters are listed above the field.


Namespaces required for parameters (optional)

If desired, enter a list of namespaces required for the parameters in the Namespaces required for parameters (optional) field. Sample parameters are listed above the field.


Modifiers

Use the Access and Specifier pop-up menus to choose the access level and method specifier for the new method. Possible access levels include Public, Protected, and Private. Possible specifiers include None, Virtual, Pure Virtual, and Static. You can enable the Inline or Const checkboxes as desired to further describe the function's modifiers.

2. Specify file locations for the new member function.

This section of the wizard, shown in Figure 7.17, lets you specify file locations associated with the new member function.

This section includes the following parts:


Declaration

This field shows you the location of the file to which the member function's declaration will be added.

New Member Function wizard - File Locations:

Definition

Enter in this field the path to file used for the member function's definition. Alternatively, click Existing to select the file using a standard dialog box. To create a new file to use for the member function's definition, click New and save the new file to a location on your hard disk.


Include files automatically added for return type and parameters

This field shows you a list of #include files that will be automatically added to the member function. These files are automatically added based on the return type and parameters you specified from the previous section.


Additional header include files

Enter in this field a list of other #include files for the new member function, in addition to those listed in the previous field. Some examples are provided above the field.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000