![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Templates in Rhapsody Topic Summary: Aspirin... aspirin! Created On: 24-Sep-2008 23:31 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm trying to implement a templated class with templated functions in Rhapsody (in this case, it's basically our custom list class). I've checked the template check box on the class, added the templated types, marked the derived classes as using particular values for the template, and modified the implementations to use those types. No dice. I keep getting error messages when I try to generate the code saying that there are conflicts with the use of the type in the functions. I will post the actual messages tomorrow and more detail, for I must fly now (appointments after work).
So, the following is the error message I'm getting (names changed to protect the guilty): in Package: Logical_Model in Package: ListWork in Class: NameList in Primitive Operation: iAddItem(tRecord) Argument: entry in Primitive Operation: iDeleteItem(tKey) Argument: key The setup is that NameList is derived from a base class BaseList, which is actually in a different package (There are Architectural and Logical models where the publically acessible base classes are on the Architectural lavel). I've tried moving around the definitions of templating and Superclasses, but so far, no dice. For that matter, does anyone know of an example of templates in the example code? I've been poking around, but again, no dice so far. Edited: 25-Sep-2008 at 16:09 by Sean Duggan |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
Templates in Rhapsody
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.