Zurück zu Willert.de

How to use Bitfields in Rhapsody

Rhapsody Model or Codegeneration topics

How to use Bitfields in Rhapsody

Postby Archive » August 16th, 2011, 2:47 pm

Bitte beachten Sie: Dieser Beitrag wurde aus dem Archiv übernommen. Please note: this topic was assumed from the archive.

Is there an easy way to uses bitfields in Rhapsody?
User avatar
Archive
 
Posts: 58
Joined: August 5th, 2011, 1:36 pm

Re: How to use Bitfields in Rhapsody

Postby Archive » August 16th, 2011, 2:47 pm

Yes, there is

select the attribute, open the feature dialog, got to Properties navigate to C_CG:Attribute:BitField or use the filter to search for "bit"

Rhapsody description of the property
Code: Select all
Allows you to define a bit field for an attribute. To define a bit field, open the Features dialog for the relevant attribute and enter the number you want to use for the bit field as the value of the property BitField. For example, if you enter 2 as the value of BitField for an attribute named attribute_1 of type int, the resulting code will be:
int attribute_1 : 2;
User avatar
Archive
 
Posts: 58
Joined: August 5th, 2011, 1:36 pm


Return to Modelling with Rhapsody

Who is online

Users browsing this forum: No registered users and 2 guests

cron