GCBM
Public Member Functions | Private Attributes | List of all members
TreeSpecies Class Reference

#include <treespecies.h>

Collaboration diagram for TreeSpecies:
Collaboration graph

Public Member Functions

 TreeSpecies ()
 
virtual ~TreeSpecies ()
 
 TreeSpecies (int speciesID, SpeciesType speciesType)
 
int speciesID () const
 
SpeciesType speciesType () const
 

Private Attributes

int _speciesID = 0
 
SpeciesType _speciesType = SpeciesType::Softwood
 

Constructor & Destructor Documentation

◆ TreeSpecies() [1/2]

◆ ~TreeSpecies()

virtual ~TreeSpecies ( )
virtual

◆ TreeSpecies() [2/2]

TreeSpecies ( int  speciesID,
SpeciesType  speciesType 
)

Constructor

Initialise TreeSpecies._speciesID as speciesID,
TreeSpecies._speciesType as speciesType

Parameters
intspeciesID
SpeciesTypespeciesType

Member Function Documentation

◆ speciesID()

int speciesID ( ) const

Return TreeSpecies._speciesID

Returns
int

◆ speciesType()

SpeciesType speciesType ( ) const

Return TreeSpecies._speciesType

Returns
SpeciesType

Member Data Documentation

◆ _speciesID

int _speciesID = 0
private

◆ _speciesType

SpeciesType _speciesType = SpeciesType::Softwood
private

The documentation for this class was generated from the following files: