Difference between revisions of "Documentation/DevGuide/WritingUNO/Defining a Sequence"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement (-Category:Documentation/Developers Guide/Professional UNO +Category:Documentation/Developers Guide/Writing UNO)) |
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Documentation/Developers Guide/Writing UNO) |
||
Line 22: | Line 22: | ||
{{PDL1}} | {{PDL1}} | ||
− | [[Category:Documentation/Developers Guide/Writing UNO]] | + | [[Category:Documentation/Developers Guide/Writing UNO Components]] |
Revision as of 07:42, 4 June 2008
A sequence in UNOIDL is an array containing a variable number of elements of the same UNOIDL type. The following is an example of a sequence
term:
// this term could occur in a UNOIDL definition block somewhere sequence< com::sun::star::uno::XInterface >
It starts with the keyword sequence
and gives the element type enclosed in angle brackets <>
. The element type must be a known type. A sequence type can be used as parameter, return value, property or struct member just like any other type. Sequences can also be nested, if necessary.
// this could be a nested sequence definition sequence< sequence< long > > // this could be an operation using sequences in some interface definition sequence< string > getNamesOfIndex(sequence< long > indexes);
Content on this page is licensed under the Public Documentation License (PDL). |