<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
-->
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference xml:lang="en-us" outputclass="element" id="cxxStructDefinition">
<title>cxxStructDefinition</title>
<shortdesc>The <cxxStructDefinition> element is defined within <cxxStructDetail>.
<cxxStructDefinition> represents the C++ struct declaration.</shortdesc>
<refbody>
<section>
<title>Description</title><p>A struct declaration specifies a new named reference type.
A struct declaration can include the following members: <i>public</i>, <i>protected</i>
or <i>private</i>, this is represented by the <cxxStructAccessSpecifier> element.</p>
<p><cxxStructDefinition> requires the element <cxxStructAPIItemLocation> as its child.</p>
</section>
<example><title>Example</title>
<codeblock><cxxStructDefinition>
<cxxStructAccessSpecifier value="public"/>
<cxxStructDerivations>
<cxxStructDerivation>
<cxxStructDerivationAccessSpecifier value="public"/>
<cxxStructBaseStruct href="struct_c_base.xml#struct_c_base">CBase</cxxStructBaseStruct>
</cxxStructDerivation>
</cxxStructDerivations>
<cxxStructAPIItemLocation>
<cxxStructDeclarationFile name="filePath" value="C:/src/include/e32base.h"/>
<cxxStructDeclarationFileLine name="lineNumber" value="2812"/>
<cxxStructDefinitionFile name="filePath" value="C:/src/include/e32base.h"/>
<cxxStructDefinitionFileLineStart name="lineNumber" value="2784"/>
<cxxStructDefinitionFileLineEnd name="lineNumber" value="2854"/>
</cxxStructAPIItemLocation>
</cxxStructDefinition></codeblock>
</example>
<section conref="../packagedef.dita#cxxStructDefinition-reference/cxxStructDefinition-containedBy-section"/>
<section conref="../packagedef.dita#cxxStructDefinition-reference/cxxStructDefinition-contains-section"/>
<section conref="../packagedef.dita#cxxStructDefinition-reference/cxxStructDefinition-contentModel-section"/>
<section conref="../packagedef.dita#cxxStructDefinition-reference/cxxStructDefinition-attList-section"/>
<section conref="../packagedef.dita#cxxStructDefinition-reference/cxxStructDefinition-classValue-section"/>
</refbody>
</reference>