 | Maartje Tel (dwinfo@us.ibm.com), Consultant, Independent Consultant
17 Apr 2004 In this white paper, VB and VC++ templates in IBM® Rational® Rose are examined, along with code constructs containing common class members and their derived behavior which can be captured and easily applied to any class.
This paper was originally published in April, 2001.
There are many occasions in the software development process when you want to reuse and share code fragments throughout a project or across projects. For example, you have a coding standard where all new classes should contain a base set of operations and attributes. Or, you may have a common set of initialization or debug code that you want to apply to all classes, or you want to reuse an error handling strategy that requires preoperations and postoperations in every method. For this purpose you can use a code template for VB and VC++ classes in IBM Rational Rose® to capture code constructs containing common class members and their derived behavior, and easily apply it to any class in your model. This process will save you precious time, you will avoid the error-prone copy/paste/rename process, and by using class templates you will get predefined code functions that will bring your project/solution closer to an executing architecture. In this article we will examine the basics behind VB and VC++ templates in Rose and show you how you can use the template feature in Rose2000e or Rose2001 by demonstrating step-by-step how we create and test our own VB MTS class template.
Download | Description | Name | Size | Download method |
|---|
| VB and VC++ templates | 1619_0612.pdf | 132 KB | HTTP |
|---|
|  | |  |