area.cpp
/*
  TODO: Area::getName(lang)

  Get a name for the Area in a specific language.  This function should be 
  callable from a constant context and not modify the state of the instance.

  @param lang
    A three-leter language code in ISO 639-3 format, e.g. cym or eng

  @return
    The name for the area in the given language

  @throws
    std::out_of_range if lang does not correspond to a language of a name stored
    inside the Area instance

  @example
    Area area("W06000023");
    std::string langCode  = "eng";
    std::string langValue = "Powys";
    area.setName(langCode, langValue);
    ...
    auto name = area.getName(langCode);
*/
:getName(lang)
Get a name for the Area in a specific language.  This function should be
callable from a constant context and not modify the state of the instance.
: getName ( lang ) Get a name for the Area in a specific language . This function should be callable from a constant context and not modify the state of the instance .
std::string Area::getName(std::string langCode){
  if(namesMap.count(langCode) > 0){
    return namesMap.find(langCode)->second;
  }else{
    throw std::out_of_range("getName area FIND CORRECT ERROR MESSAGE"+ langCode);
  }
}
std :: string Area :: getName ( std :: string langCode ) { if ( namesMap . count ( langCode ) > 0 ) { return namesMap . find ( langCode ) -> second ; } else { throw std :: out_of_range ( " " + langCode ) ; } }
TODO: Area::getName(lang)
Get a name for the Area in a specific language.
TODO : Area :: getName ( lang ) Get a name for the Area in a specific language .