Creating an IDL attribute (IDL code)
For information about creating constants, see
Creating an IDL attribute (IDL code).
To create an IDL attribute:
1. Right-click the Component, Connector, Message, Structure or Value Type for which you want to create an Attribute, point to New, and then click IDL Attribute.
2. From the Type Selector dialog, in the Types list select the type of item you want to use, that is, Basic Type, Class, Data Type, Message, Structure, Type Definition, Typedef or Value Type.
3. In Existing Type browser, select the item you want to use.
4. Type the name of the Attribute, and then press the Enter key.
5. Open the Attribute's Property Pages, and then click the Data Type tab.
6. In the Type box, type the name of the Attribute's type, or click the Select button and then select the item you want to use as the type.
7. If you want to specify that the Attribute is a constant:
a. Right-click the Attribute, point to > , and then click CORBAConstant.
Alternatively, in the Attribute's Property Pages, click the IDLAttribute tab, and then set the tagged value of the Constant tag definition to True.
b. Open the Attribute's Property Pages, and then click the Data Type tab.
c. In the Default box, type then value of the constant.
8. If you want to specify get raises exceptions for the Attribute:
a. Open the Attribute's Property Pages.
b. Click the IDL Attribute tab.
c. Set the tagged value of the getraises tag definition to the get raises Exceptions.
9. If you want to specify set raises exceptions for the Attribute:
a. Open the Attribute's Property Pages.
b. Click the IDL Attribute tab.
c. Set the tagged value of the setraises tag definition to the set raises Exceptions.