FMU/Source/Building.cpp
/**
 * @brief checks if a building has a given zone
 * @param  zoneName name of the zone
 * @return          true if the zone is in the building
 */
@brief checks if a building has a given zone
@param  zoneName name of the zone
@return          true if the zone is in the building
@brief checks if a building has a given zone @param zoneName name of the zone @return true if the zone is in the building
bool Building::hasZone(const std::string& zoneName) const {
  bool has = false;
  for (const std::shared_ptr<Building_Zone> & z : zones) {
    if (z->isNamed(zoneName)) {
      has = true;
    }
  }
  return has;
}
bool Building :: hasZone ( const std :: string & zoneName ) const { bool has = false ; for ( const std :: shared_ptr < Building_Zone > & z : zones ) { if ( z -> isNamed ( zoneName ) ) { has = true ; } } return has ; }
@brief checks if a building has a given zone
 @param  zoneName name of the zone
 @return          true if the zone is in the building
@brief checks if a building has a given zone @param zoneName name of the zone @return true if the zone is in the building