DITA-OT_CXX_Plugin/cxxapiref/doc/cxxStruct/cxxStructDefinition.dita
changeset 4 468f4c8d3d5b
equal deleted inserted replaced
3:d8fccb2cd802 4:468f4c8d3d5b
       
     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 &lt;cxxStructDefinition&gt; element is defined within &lt;cxxStructDetail&gt;. 
       
    10     &lt;cxxStructDefinition&gt; 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 &lt;cxxStructAccessSpecifier&gt; element.</p>
       
    16             <p>&lt;cxxStructDefinition&gt; requires the element &lt;cxxStructAPIItemLocation&gt; as its child.</p>
       
    17         </section>
       
    18         <example><title>Example</title>
       
    19         <codeblock>&lt;cxxStructDefinition&gt;
       
    20 			&lt;cxxStructAccessSpecifier value="public"/&gt;
       
    21 			&lt;cxxStructDerivations&gt;
       
    22 				&lt;cxxStructDerivation&gt;
       
    23 					&lt;cxxStructDerivationAccessSpecifier value="public"/&gt;
       
    24 					&lt;cxxStructBaseStruct href="struct_c_base.xml#struct_c_base"&gt;CBase&lt;/cxxStructBaseStruct&gt;
       
    25 				&lt;/cxxStructDerivation&gt;
       
    26 			&lt;/cxxStructDerivations&gt;
       
    27 			&lt;cxxStructAPIItemLocation&gt;
       
    28 				&lt;cxxStructDeclarationFile name="filePath" value="C:/src/include/e32base.h"/&gt;
       
    29 				&lt;cxxStructDeclarationFileLine name="lineNumber" value="2812"/&gt;
       
    30 				&lt;cxxStructDefinitionFile name="filePath" value="C:/src/include/e32base.h"/&gt;
       
    31 				&lt;cxxStructDefinitionFileLineStart name="lineNumber" value="2784"/&gt;
       
    32 				&lt;cxxStructDefinitionFileLineEnd name="lineNumber" value="2854"/&gt;
       
    33 			&lt;/cxxStructAPIItemLocation&gt;
       
    34 		&lt;/cxxStructDefinition&gt;</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>