DITA-OT_CXX_Plugin/cxxapiref/doc/cxxFunction/cxxFunction.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="cxxFunction">
       
     8     <title>cxxFunction</title>
       
     9     <shortdesc>Contains all the elements needed to describe the declaration of a   C++ function (or <i>member</i> function).</shortdesc>
       
    10     <refbody>
       
    11         <section id="section_B20A7D521E3842829C774491FDD670A5">
       
    12             <title>Description</title><p>The <tt>&lt;cxxFunction&gt;</tt> element requires
       
    13 an ID attribute as an anchor point; this ID must always be specified. The
       
    14 ID attribute is referenced by the <i>conref</i> attribute from internal applications
       
    15 that refer to the  <tt>&lt;cxxFunctiion&gt;</tt> element content. The elements <tt>&lt;apiName&gt;</tt> 
       
    16 and <tt>&lt;cxxFunctionDetail&gt;</tt> are required for this top-level container. 
       
    17             </p><p>
       
    18                 <?xm-replace_text Paragraph ?>
       
    19             </p>
       
    20         </section>
       
    21         <example id="example_F38D1539002D4528B2FBC2B42EB2AECA">
       
    22             <title>Example</title><p>The following illustrates a typical (global) function:</p>
       
    23             <codeblock>&lt;cxxFunction id="test__class_8h_1a27a789a5aabed6e0e0d79ce0fd02b937"&gt;
       
    24   &lt;apiName&gt;SearchBuffer&lt;/apiName&gt;
       
    25   &lt;cxxFunctionDetail&gt;
       
    26     &lt;cxxFunctionDefinition&gt;
       
    27       &lt;cxxFunctionAccessSpecifier value="public"/&gt;
       
    28       &lt;cxxFunctionStorageClassSpecifierStatic/&gt;
       
    29       &lt;cxxFunctionDeclaredType&gt;int&lt;/cxxFunctionDeclaredType&gt;
       
    30       &lt;cxxFunctionScopedName/&gt;
       
    31       &lt;cxxFunctionPrototype&gt;static int SearchBuffer(const char *aBuffer, char c, int i)&lt;/cxxFunctionPrototype&gt;
       
    32       &lt;cxxFunctionNameLookup&gt;SearchBuffer(const char *,char,int)&lt;/cxxFunctionNameLookup&gt;
       
    33       &lt;cxxFunctionParameters&gt;
       
    34         &lt;cxxFunctionParameter&gt;
       
    35           &lt;cxxFunctionParameterDeclaredType&gt;const char *&lt;/cxxFunctionParameterDeclaredType&gt;
       
    36           &lt;cxxFunctionParameterDeclarationName&gt;aBuffer&lt;/cxxFunctionParameterDeclarationName&gt;
       
    37           &lt;apiDefNote&gt;The buffer to search. &lt;/apiDefNote&gt;
       
    38         &lt;/cxxFunctionParameter&gt;
       
    39         &lt;cxxFunctionParameter&gt;
       
    40           &lt;cxxFunctionParameterDeclaredType&gt;char&lt;/cxxFunctionParameterDeclaredType&gt;
       
    41           &lt;cxxFunctionParameterDeclarationName&gt;c&lt;/cxxFunctionParameterDeclarationName&gt;
       
    42           &lt;apiDefNote&gt;the character to search for. &lt;/apiDefNote&gt;
       
    43         &lt;/cxxFunctionParameter&gt;
       
    44         &lt;cxxFunctionParameter&gt;
       
    45           &lt;cxxFunctionParameterDeclaredType&gt;int&lt;/cxxFunctionParameterDeclaredType&gt;
       
    46           &lt;cxxFunctionParameterDeclarationName&gt;i&lt;/cxxFunctionParameterDeclarationName&gt;
       
    47           &lt;apiDefNote&gt;The start position. &lt;/apiDefNote&gt;
       
    48         &lt;/cxxFunctionParameter&gt;
       
    49       &lt;/cxxFunctionParameters&gt;
       
    50       &lt;apiDefNote&gt;The index in the buffer or -1 if not found or i is &amp;gt;= the buffer length. &lt;/apiDefNote&gt;
       
    51       &lt;cxxFunctionAPIItemLocation&gt;
       
    52         &lt;cxxFunctionDeclarationFile name="filePath" value="C:/wip/sysdoc/tools/Doxygen/branches/DITA/test/PaulRo/cxxApiExamples/src/test_class.h"/&gt;
       
    53         &lt;cxxFunctionDeclarationFileLine name="lineNumber" value="14"/&gt;
       
    54       &lt;/cxxFunctionAPIItemLocation&gt;
       
    55     &lt;/cxxFunctionDefinition&gt;
       
    56     &lt;apiDesc&gt;
       
    57       &lt;p&gt;Searches a buffer for a character from a start position in the buffer. &lt;/p&gt;
       
    58     &lt;/apiDesc&gt;
       
    59   &lt;/cxxFunctionDetail&gt;
       
    60 &lt;/cxxFunction&gt;
       
    61             </codeblock>
       
    62         </example>
       
    63         <section conref="../packagedef.dita#cxxFunction-reference/cxxFunction-containedBy-section"/>
       
    64         <section conref="../packagedef.dita#cxxFunction-reference/cxxFunction-contains-section"/>
       
    65         <section conref="../packagedef.dita#cxxFunction-reference/cxxFunction-contentModel-section"/>
       
    66         <section conref="../packagedef.dita#cxxFunction-reference/cxxFunction-attList-section"/>
       
    67         <section conref="../packagedef.dita#cxxFunction-reference/cxxFunction-classValue-section"/>
       
    68     </refbody>
       
    69 </reference>