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: How to tell Rhapsody NOT to include references to OXF in generated source code
Topic Summary:
Created On: 14-Oct-2005 08:58
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.
 14-Oct-2005 08:58
User is offline View Users Profile Print this message


Andrew Stepanenko

Posts: 2
Joined: 11-Jun-2005

Hello,

I'm developing an application for the environment where recources are very limited. That's why I want to have references in generated source code only to those clases which I defined myself. But Rhapsody includes lots of oxf/ classes, methods, events...How can I tell it not to do that?

Thank you,
--
Andrew Stepanenko,
PhD Student,
Faculty of Computer Information Technologies,
Ternopil State Economic University
Shevchenko Street 9, Office 24-25
Ternopil, 46000 UKRAINE
Tel: +38 (0352) 43 52 41
fax: +38 (0352) 43 52 45
Web: [url]http://unf.tane.edu.ua[/url]
Report this to a Moderator Report this to a Moderator
 14-Oct-2005 18:49
User is offline View Users Profile Print this message


Bernhard Merkle

Posts: 18
Joined: 2-Jun-2005

Hi there,

this is possible via the Rhapsody properties for Code generation.
If you set the "right" properties, NO OXF includes will be generated.

Note however, that the generated makefiles (at least for Windows)
will ALWAYS contain a link statement for using the oxf LIBs.
You might consider this as a feature ;-) and re-edit the generated makefile on Windows.

kind regards,
Bernhard.
Report this to a Moderator Report this to a Moderator
 17-Oct-2005 07:55
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Hi Andrew

The property you need to set to avoid generation of the #include "oxf/oxf.h" line is:

[CODE]CPP_CG::Framework::IncludeHeaderFile[/CODE]
You could also look at the [URL=http://www.ilogix.com/forum/showthread.php?t=843][COLOR=Navy]Using Rhapsody 6.0 with No Framework[/COLOR][/URL] thread in the Value Added Utilities forum. I think this addresses your need directly...

cheers,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life
Report this to a Moderator Report this to a Moderator
 9-Nov-2005 15:12
User is offline View Users Profile Print this message


Amos Ortal

Posts: 120
Joined: 22-Jul-2004

You can remove the framework libraries from the makefile as well by editing the <lang>_CG:<environment>:MakeFileContent property

<lang> = C|CPP
<environment> = Microsoft, VxWorks, Linux, etc.
Report this to a Moderator Report this to a Moderator
 7-Aug-2006 15:23
User is offline View Users Profile Print this message


Ian Turner

Posts: 25
Joined: 3-Feb-2006

Hi Andrew,

I am working on a project that requires no framework code at all. I created a profile and set all the C_CG::Framework properties to empty strings, the CG::Configuration::MainGenerationScheme to "UserInitializationOnly" CG::Class::GenerateImplicitConstructor to false C_CG::Class::Animate to false and C_CG::Class::GenerateDestructor to false.

We are also using Rhapsody in C with files NOT classes. When adding functions to files, only use functions, do NOT use the initializer, cleanup etc. options as they will use C++ style framework code.

Regards,

Ian
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.