CDT Class Wizard Enhancements
This document serves as the current "Record of Understanding" for the requirements of the Class Wizard for the Eclipse CDT.
Author: Chris Wiebe, Alain Magloire
Revision Date: 04/14/2004 - Version: 0.1.0

Table of Contents

1. Overview
2. Requirements
2.1 Multiple Base Classes
2.2 Inheritance Access
2.3 Enclosing Type
2.4 Method Stubs
2.5 Header File
2.6 Source File


1. Overview

A picture is worth a thousand words. The following mock-up illustrates how the Class Wizard could possibly function:

image

2. Requirements

2.1 Multiple Base Classes
2.2 Inheritance Acess

In the Base Classes table:

2.3 Enclosing Type

The Enclosing Type can be an existing class or namespace.

2.4 Method Stubs

In the Method Stubs table:

The default stubs would be:

In the future, additional stubs could be added, e.g.:

2.5 Header File

By default, the path field should contain the location of the selected project/file/folder when the class wizard was opened. The header filename is constructed from the Name field + ".h" but can be overriden if needed. Clicking the Browse button brings up a file selection dialog where you can pick an existing header file.

The include guard checkbox, if selected, causes the generated header file to be wrapped with #ifdef macros. This field is disabled if the header file already exists.

2.6 Source File

By default, the path field should contain the location of the selected project/file/folder when the class wizard was opened. The source filename is constructed from the Name field + ".cpp" but can be overriden if needed. Clicking the Browse button brings up a file selection dialog where you can pick an existing source file.