# cxxDefineDefinition

The <cxxDefineDefinition> element is defined within <cxxDefineDetail>. <cxxDefineDefinition> represents the C++ define declaration.

## Description

A define declaration specifies a new named reference type. A define declaration can include public members which is represented by the <cxxDefineAccessSpecifier> element.

## Example

    <cxxDefineDefinition>
        <cxxDefineAccessSpecifier value="public"/>
        <cxxDefinePrototype>#define ENABLE_NETWORKING_PERFMETRICS</cxxDefinePrototype>
        <cxxDefineNameLookup>ENABLE_NETWORKING_PERFMETRICS</cxxDefineNameLookup>
        <cxxDefineParameters/>
        <cxxDefineAPIItemLocation>
            <cxxDefineDeclarationFile name="filePath" value="C:/EPOC/master/sf/os/commsfw/src/cfperfmetrics.cpp"/>
            <cxxDefineDeclarationFileLine name="lineNumber" value="17"/>
        </cxxDefineAPIItemLocation>
    </cxxDefineDefinition>

## Contained by

cxxDefineDetail

## Contains

cxxDefineAPIItemLocation cxxDefineAccessSpecifier cxxDefineNameLookup cxxDefineParameters cxxDefinePrototype cxxDefineReimplemented

## Content Model

(cxxDefineAccessSpecifier (optional) then cxxDefinePrototype (optional) then cxxDefineNameLookup (optional) then cxxDefineReimplemented (optional) then cxxDefineParameters (optional) then cxxDefineAPIItemLocation (optional) )

## Inheritance

topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef cxxDefine/cxxDefineDefinition

Parent topic: cxxDefine module