Chapter 15 Working with IDL


Struct

You create a CORBA struct type using a class with the <<CORBAStruct>> stereotype. You can mix attribute types in the struct class.

struct Customer {
   string name_lastname;
   long age;
};

You use composition links to define complex struct classes as defined in the following example:


struct Customer {
   string name_lastname;
   long age;
   Address references;
   Customer_Category belongs;
};

 


Copyright (C) 2005. Sybase Inc. All rights reserved.