DITA-OT_CXX_Plugin/cxxapiref/doc/cxxVariable/cxxVariable.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="cxxVariable">
       
     8     <title>cxxVariable</title>
       
     9     <shortdesc>The &lt;cxxVariable&gt; element contains the elements necessary to describe a variable.</shortdesc>
       
    10     <refbody>
       
    11         <section>
       
    12             <title>Description</title>
       
    13             <p>The &lt;cxxVariable&gt; element requires the <i>id</i> attribute so that it can be referenced 
       
    14             by other topics. &lt;cxxVariable&gt; also requires an &lt;apiname&gt; element to specify the variable 
       
    15             name, the the &lt;cxxVariableDetail&gt; element to hold the variable description.</p>
       
    16         </section>
       
    17         <example>
       
    18             <title>Example</title>
       
    19             <codeblock>&lt;cxxClass id="a_class"&gt;
       
    20     &lt;apiName&gt;AClass&lt;/apiName&gt;
       
    21     &lt;cxxClassDetail&gt;
       
    22         ...
       
    23     &lt;/cxxClassDetail&gt;
       
    24     &lt;cxxFunction id="a_class_1a0cd89cbef4c7224dab024bfa3182b99e"&gt;
       
    25         ...
       
    26     &lt;/cxxFunction&gt;
       
    27     &lt;cxxVariable id="a_class_1ae0375"&gt;
       
    28         &lt;apiName&gt;iFunctions&lt;/apiName&gt;
       
    29         &lt;cxxVariableDetail&gt;
       
    30             &lt;cxxVariableDefinition&gt;
       
    31                 &lt;cxxVariableAccessSpecifier value="protected"/&gt;
       
    32                 &lt;cxxVariableDeclaredType&gt;
       
    33                     &lt;apiRelation href="a_class_general_functions.xml#class_m_anim_general_functions"&gt;MAnimGeneralFunctions&lt;/apiRelation&gt; *&lt;/cxxVariableDeclaredType&gt;
       
    34                 &lt;cxxVariableScopedName&gt;CAnim&lt;/cxxVariableScopedName&gt;
       
    35                 &lt;cxxVariablePrototype&gt;MAnimGeneralFunctions * iFunctions&lt;/cxxVariablePrototype&gt;
       
    36                 &lt;cxxVariableNameLookup&gt;CAnim::iFunctions&lt;/cxxVariableNameLookup&gt;
       
    37                 &lt;cxxVariableAPIItemLocation&gt;
       
    38                     &lt;cxxVariableDeclarationFile name="filePath" value="C:/src/include/w32adll.h"/&gt;
       
    39                     &lt;cxxVariableDeclarationFileLine name="lineNumber" value="908"/&gt;
       
    40                 &lt;/cxxVariableAPIItemLocation&gt;
       
    41             &lt;/cxxVariableDefinition&gt;
       
    42             &lt;apiDesc&gt;
       
    43                 &lt;p&gt;Pointer to a class containing functions implemented by the window server.&lt;/p&gt;
       
    44                 &lt;p&gt;These are available to any &lt;xref href="a_class.xml#a_class"&gt;CAnim&lt;/xref&gt; derived class.&lt;/p&gt;
       
    45                 &lt;p&gt;Note that this value is automatically set for you by the animation framework. You do not need to assign a value to this pointer.&lt;/p&gt;
       
    46             &lt;/apiDesc&gt;
       
    47         &lt;/cxxVariableDetail&gt;
       
    48     &lt;/cxxVariable&gt;
       
    49     &lt;cxxClassInherits&gt;
       
    50         ...
       
    51     &lt;/cxxClassInherits&gt;
       
    52 &lt;/cxxClass&gt;</codeblock>
       
    53         </example>
       
    54         <section conref="../packagedef.dita#cxxVariable-reference/cxxVariable-containedBy-section"/>
       
    55         <section conref="../packagedef.dita#cxxVariable-reference/cxxVariable-contains-section"/>
       
    56         <section conref="../packagedef.dita#cxxVariable-reference/cxxVariable-contentModel-section"/>
       
    57         <section conref="../packagedef.dita#cxxVariable-reference/cxxVariable-attList-section"/>
       
    58         <section conref="../packagedef.dita#cxxVariable-reference/cxxVariable-classValue-section"/>
       
    59     </refbody>
       
    60 </reference>