<p>Various cleanups in the option handling code. See individual commits.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/osm2pgsql/pull/1190'>https://github.com/openstreetmap/osm2pgsql/pull/1190</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Simplify database connection options code</li>
  <li>options_t isn't a virtual class</li>
  <li>Make options_t into class (was a struct)</li>
  <li>verbose option only used inside option parsing</li>
  <li>Use enum class for hstore options instead of macros</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-3c8b06ad5aedc529c59e14ac80abc7ab">src/geometry-processor.hpp</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-31eac6c228c4ab72f60d657761c9ba4e">src/middle-ram.hpp</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-b6be4cf43f0d02f1fd71095382f515f5">src/node-persistent-cache.hpp</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-8fc678ba06a385b9b43fa2afc72e840c">src/options.cpp</a>
    (61)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-e1c9ddc1756fbfc23ab4970762a3a928">src/options.hpp</a>
    (44)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-732ab59463507f38b2debac03c50d4af">src/output-multi.hpp</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-d04317e97d7a6fda81a3c8541e458fd9">src/output.cpp</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-4eaa4d157c8b98372ad84ef48547fa71">src/table.cpp</a>
    (16)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-0e91df6bf8fec3052a24bca9a7af6b7e">src/table.hpp</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-1e6727b2d3e4701209cddbe6a2864cb6">src/tagtransform-c.cpp</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-2ef6cb9cc33a1d31277e08b242e78ee4">src/tagtransform.hpp</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190/files#diff-02ac243dcf5b215aaec05fa9bdf591a6">tests/test-output-pgsql-hstore-match-only.cpp</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1190.patch'>https://github.com/openstreetmap/osm2pgsql/pull/1190.patch</a></li>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1190.diff'>https://github.com/openstreetmap/osm2pgsql/pull/1190.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1190">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353RH6YENRZB7ZKPTERTRTT3HFANCNFSM4NMBRFFQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353RC45XFYD5YGTYGGBLRTT3HFA5CNFSM4NMBRFF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JKKFPFA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1190",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1190",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>