vtSpeciesList Class Reference

List of all members.

Public Member Functions

bool ReadXML (const char *fname, vtString *msg=NULL)
bool WriteXML (const char *fname) const
unsigned int NumSpecies () const
vtPlantSpeciesGetSpecies (unsigned int i) const
short GetSpeciesIdByName (const char *name) const
short GetSpeciesIdByCommonName (const char *name) const
void Append (vtPlantSpecies *pSpecies)
short FindSpeciesId (vtPlantSpecies *ps)
void Clear ()

Protected Attributes

vtArray< vtPlantSpecies * > m_Species


Detailed Description

A species list is a list of species.

Member Function Documentation

short vtSpeciesList::GetSpeciesIdByCommonName ( const char *  name  )  const

Find the index of a species by common name. Example:

    short index = pSpeciesList->GetSpeciesIdByName("Coconut Palm");
Returns:
The 0-based index, or -1 if not found.

short vtSpeciesList::GetSpeciesIdByName ( const char *  name  )  const

Find the index of a species by scientific name. Example:

    short index = pSpeciesList->GetSpeciesIdByName("Cocos nucifera");
Returns:
The 0-based index, or -1 if not found.


Generated on Wed Dec 24 13:08:41 2008 for vtdata library by  doxygen 1.5.7.1