Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Templates in Rhapsody
Topic Summary: Aspirin... aspirin!
Created On: 24-Sep-2008 23:31
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 24-Sep-2008 23:31
User is offline View Users Profile Print this message


Sean Duggan

Posts: 29
Joined: 21-Apr-2008

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):
Error: Refecernce (sic) To Template Parameter Type From Another Class
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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.