/***************************************************************************
* Project: osmdata
* File: common.h
* Language: C++
*
* osmdata is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* osmdata is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* osm-router. If not, see .
*
* Author: Mark Padgham / Andrew Smith
* E-Mail: mark.padgham@email.com / andrew@casacazaz.net
*
* Description: Common header file for get-points/lines/polygons
*
* Limitations:
*
* Dependencies: none (rapidXML header included in osmdata)
*
* Compiler Options: -std=c++11
***************************************************************************/
#pragma once
// These lines suppress two classes of warnings from rapidxml, but note that
// this is forbidden on CRAN:
// https://cran.r-project.org/web/packages/policies.html
// #pragma GCC diagnostic push
// #pragma GCC diagnostic ignored "-Wdeprecated-dynamic-exception-spec"
// #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#include "rapidxml.h"
// #pragma GCC diagnostic pop
#include // Only for 'NA_REAL'
// APS not good pratice to have all the headers included here, adds to compile time
// better to #include as and where needed, ideally in source rather than headers,
// and use fwd declarations wherever possible
#include
#include
#include
#include
#include