|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 All rights reserved. |
|
5 --> |
|
6 <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
|
7 <reference xml:lang="en-us" outputclass="element" id="cxxStructDefinition"> |
|
8 <title>cxxStructDefinition</title> |
|
9 <shortdesc>The <cxxStructDefinition> element is defined within <cxxStructDetail>. |
|
10 <cxxStructDefinition> represents the C++ struct declaration.</shortdesc> |
|
11 <refbody> |
|
12 <section> |
|
13 <title>Description</title><p>A struct declaration specifies a new named reference type. |
|
14 A struct declaration can include the following members: <i>public</i>, <i>protected</i> |
|
15 or <i>private</i>, this is represented by the <cxxStructAccessSpecifier> element.</p> |
|
16 <p><cxxStructDefinition> requires the element <cxxStructAPIItemLocation> as its child.</p> |
|
17 </section> |
|
18 <example><title>Example</title> |
|
19 <codeblock><cxxStructDefinition> |
|
20 <cxxStructAccessSpecifier value="public"/> |
|
21 <cxxStructDerivations> |
|
22 <cxxStructDerivation> |
|
23 <cxxStructDerivationAccessSpecifier value="public"/> |
|
24 <cxxStructBaseStruct href="struct_c_base.xml#struct_c_base">CBase</cxxStructBaseStruct> |
|
25 </cxxStructDerivation> |
|
26 </cxxStructDerivations> |
|
27 <cxxStructAPIItemLocation> |
|
28 <cxxStructDeclarationFile name="filePath" value="C:/src/include/e32base.h"/> |
|
29 <cxxStructDeclarationFileLine name="lineNumber" value="2812"/> |
|
30 <cxxStructDefinitionFile name="filePath" value="C:/src/include/e32base.h"/> |
|
31 <cxxStructDefinitionFileLineStart name="lineNumber" value="2784"/> |
|
32 <cxxStructDefinitionFileLineEnd name="lineNumber" value="2854"/> |
|
33 </cxxStructAPIItemLocation> |
|
34 </cxxStructDefinition></codeblock> |
|
35 </example> |
|
36 <section conref="../packagedef.dita#cxxStructDefinition-reference/cxxStructDefinition-containedBy-section"/> |
|
37 <section conref="../packagedef.dita#cxxStructDefinition-reference/cxxStructDefinition-contains-section"/> |
|
38 <section conref="../packagedef.dita#cxxStructDefinition-reference/cxxStructDefinition-contentModel-section"/> |
|
39 <section conref="../packagedef.dita#cxxStructDefinition-reference/cxxStructDefinition-attList-section"/> |
|
40 <section conref="../packagedef.dita#cxxStructDefinition-reference/cxxStructDefinition-classValue-section"/> |
|
41 </refbody> |
|
42 </reference> |