# cxxClassDefinition

The <cxxClassDefinition> element is defined within <cxxClassDetail>. <cxxClassDefinition> represents the C++ class declaration.

## Description

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

<cxxClassDefinition> requires the element <cxxClassAPIItemLocation< as it's child.

## Example

    <cxxClassDefinition>
    			<cxxClassAccessSpecifier value="public"/>
    			<cxxClassDerivations>
    				<cxxClassDerivation>
    					<cxxClassDerivationAccessSpecifier value="public"/>
    					<cxxClassBaseClass href="class_c_base.xml#class_c_base">CBase</cxxClassBaseClass>
    				</cxxClassDerivation>
    			</cxxClassDerivations>
    			<cxxClassAPIItemLocation>
    				<cxxClassDeclarationFile name="filePath" value="C:/src/include/e32base.h"/>
    				<cxxClassDeclarationFileLine name="lineNumber" value="2812"/>
    				<cxxClassDefinitionFile name="filePath" value="C:/src/include/e32base.h"/>
    				<cxxClassDefinitionFileLineStart name="lineNumber" value="2784"/>
    				<cxxClassDefinitionFileLineEnd name="lineNumber" value="2854"/>
    			</cxxClassAPIItemLocation>
    		</cxxClassDefinition>

## Contained by

cxxClassDetail

## Contains

cxxClassAPIItemLocation cxxClassAbstract cxxClassAccessSpecifier cxxClassDerivations cxxClassTemplateParameters

## Content Model

(cxxClassAccessSpecifier (optional) then cxxClassAbstract (optional) then cxxClassDerivations (optional) then cxxClassTemplateParameters (optional) then cxxClassAPIItemLocation )

## Inheritance

topic/section reference/section apiRef/apiDef apiClassifier/apiClassifierDef cxxClass/cxxClassDefinition

Parent topic: cxxClass module