# cxxVariableDefinition

The <cxxVariableDefinition> element specifies the variable definition.

## Description

The <cxxVariableDefinition> element is a container for many optional elements that describe a C++ variable. All elements within <cxxVariableDefinition> are optional.

## Example

    <cxxVariableDefinition>
        <cxxVariableAccessSpecifier value="public"/>
        <cxxVariableDeclaredType>
            <apiRelation href="class_t_request_status.xml#class_t_request_status">TRequestStatus</apiRelation>
        </cxxVariableDeclaredType>
        <cxxVariableScopedName>CActive</cxxVariableScopedName>
        <cxxVariablePrototype>TRequestStatus iStatus</cxxVariablePrototype>
        <cxxVariableNameLookup>CActive::iStatus</cxxVariableNameLookup>
        <cxxVariableAPIItemLocation>
            <cxxVariableDeclarationFile name="filePath" value="C:/src/include/e32base.h"/>
            <cxxVariableDeclarationFileLine name="lineNumber" value="1664"/>
        </cxxVariableAPIItemLocation>
    </cxxVariableDefinition>

## Contained by

cxxVariableDetail

## Contains

cxxVariableAPIItemLocation cxxVariableAccessSpecifier cxxVariableConst cxxVariableDeclaredType cxxVariableNameLookup cxxVariablePrototype cxxVariableReimplemented cxxVariableScopedName cxxVariableStorageClassSpecifierExtern cxxVariableStorageClassSpecifierMutable cxxVariableStorageClassSpecifierStatic cxxVariableVolatile

## Content Model

(cxxVariableAccessSpecifier (optional) then cxxVariableStorageClassSpecifierExtern (optional) then cxxVariableStorageClassSpecifierStatic (optional) then cxxVariableStorageClassSpecifierMutable (optional) then cxxVariableConst (optional) then cxxVariableVolatile (optional) then cxxVariableDeclaredType (optional) then cxxVariableScopedName (optional) then cxxVariablePrototype (optional) then cxxVariableNameLookup (optional) then cxxVariableReimplemented (optional) then cxxVariableAPIItemLocation (optional) )

## Inheritance

topic/section reference/section apiRef/apiDef apiValue/apiValueDef cxxVariable/cxxVariableDefinition

Parent topic: cxxVariable module