UML Modelling and Codegeneration related discussions » Tool Usage and Handling » How to use Bitfields in Rhapsody
How to use Bitfields in Rhapsody
2502 Betrachtungen
Seite:
1
How to use Bitfields in Rhapsody
30.09.2008 12:09
Is there an easy way to uses bitfields in Rhapsody?
Re: How to use Bitfields in Rhapsody
30.09.2008 12:18
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
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;
