Difference between revisions of "Documentation/DevGuide/AppendixA/Structs"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Documentation/Developers Guide/Appendix) |
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
||
Line 5: | Line 5: | ||
|NextPage=Documentation/DevGuide/AppendixA/Parameter | |NextPage=Documentation/DevGuide/AppendixA/Parameter | ||
}} | }} | ||
− | {{DISPLAYTITLE:Structs}} | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/AppendixA/{{SUBPAGENAME}}}} |
+ | {{DISPLAYTITLE:Structs}} | ||
Structs are static collections of multiple values that belong to a single aspect and could be considered as a single, complex value. | Structs are static collections of multiple values that belong to a single aspect and could be considered as a single, complex value. | ||
Revision as of 09:02, 18 May 2009
Structs are static collections of multiple values that belong to a single aspect and could be considered as a single, complex value.
Naming
Structs begin with an uppercase letter and are put in initial caps. Avoid abbreviations.
If the actual name for the struct does not sound correct, do not add Attributes
, Properties
or the suffixes suggested for enums. These two words refer to different concepts within the OpenOffice.org API. Instead, use words like Format
or Descriptor
.
Usage
Use structs as data containers. Data other than interfaces are always copied by value. This is an efficiency gain, especially in distributed systems.
Structs with just a single member are wrong by definition.
Content on this page is licensed under the Public Documentation License (PDL). |