Chapter 15 Working with IDL
You create a CORBA sequence using a class with the <<CORBASequence>> stereotype. The type of the sequence is defined in another class linked to the sequence by an association. The UpperBound extended attribute of the <<CORBASequence>> class is used to define the upper bound of the sequence.
typedef sequence< string > name_lastname;
You can use a class with the <<CORBAAnonymousSequence>> stereotype to avoid defining directly a type for a sequence to design sequence imbrication.
typedef sequence< sequence< string > > Election_list;
Copyright (C) 2005. Sybase Inc. All rights reserved. |