# cxxEnumerationDefinition

The <cxxEnumerationDefinition> element is defined within <cxxEnumerationDetail>. <cxxEnumerationDefinition> represents the C++ enumeration declaration.

## Description

An enumeration declaration specifies a new named reference type. An enumeration declaration can include the following members: public, protected or private, this is represented by the <cxxEnumerationAccessSpecifier> element.

<cxxEnumerationDefinition> requires the element <cxxEnumerationAPIItemLocation> as its child.

## Example

    <cxxEnumerationDefinition>
    			<cxxEnumerationAccessSpecifier value="public"/>
    			<cxxEnumerationAPIItemLocation>
    				<cxxEnumerationDeclarationFile name="filePath" value="C:/src/include/e32base.h"/>
    				<cxxEnumerationDeclarationFileLine name="lineNumber" value="2812"/>
    				<cxxEnumerationDefinitionFile name="filePath" value="C:/src/include/e32base.h"/>
    				<cxxEnumerationDefinitionFileLineStart name="lineNumber" value="2784"/>
    				<cxxEnumerationDefinitionFileLineEnd name="lineNumber" value="2854"/>
    			</cxxEnumerationAPIItemLocation>
    		</cxxEnumerationDefinition>

## Contained by

cxxEnumerationDetail

## Contains

cxxEnumerationAPIItemLocation cxxEnumerationAccessSpecifier cxxEnumerationNameLookup cxxEnumerationPrototype cxxEnumerationReimplemented cxxEnumerationScopedName cxxEnumerators

## Content Model

(cxxEnumerationAccessSpecifier (optional) then cxxEnumerationScopedName (optional) then cxxEnumerationPrototype (optional) then cxxEnumerationNameLookup (optional) then cxxEnumerationReimplemented (optional) then cxxEnumerators (optional) then cxxEnumerationAPIItemLocation (optional) )

## Inheritance

topic/section reference/section apiRef/apiDef apiValue/apiValueDef cxxEnumeration/cxxEnumerationDefinition

Parent topic: cxxEnumeration module