Skip to content

Commit 6db1cf9

Browse files
committed
Make options_t into class (was a struct)
1 parent b108605 commit 6db1cf9

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

src/geometry-processor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "tagtransform.hpp"
1414

1515
struct middle_query_t;
16-
struct options_t;
16+
class options_t;
1717
class reprojection;
1818

1919
struct geometry_processor

src/middle-ram.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "middle.hpp"
1717

1818
class node_ram_cache;
19-
struct options_t;
19+
class options_t;
2020

2121
template <typename T, size_t N>
2222
class cache_block_t

src/node-persistent-cache.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "node-ram-cache.hpp"
1010
#include "osmtypes.hpp"
1111

12-
struct options_t;
12+
class options_t;
1313

1414
class node_persistent_cache
1515
{

src/options.hpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,16 @@ struct database_options_t
3636
/**
3737
* Structure for storing command-line and other options
3838
*/
39-
struct options_t
39+
class options_t
4040
{
4141
public:
42-
// fixme: bring back old comment
42+
/**
43+
* Constructor setting default values for all options. Used for testing.
44+
*/
4345
options_t();
46+
4447
/**
45-
* Parse the options from the command line
48+
* Constructor parsing the options from the command line.
4649
*/
4750
options_t(int argc, char *argv[]);
4851

src/output-multi.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
#include <memory>
1818
#include <string>
1919

20+
class options_t;
2021
class table_t;
2122
class tagtransform_t;
2223
struct export_list;
2324
struct middle_query_t;
24-
struct options_t;
2525

2626
class output_multi_t : public output_t
2727
{

src/tagtransform.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include "osmtypes.hpp"
99

10-
struct options_t;
10+
class options_t;
1111
struct export_list;
1212

1313
class tagtransform_t

0 commit comments

Comments
 (0)