Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split tagtransform header into one file per class
- Loading branch information
Showing
6 changed files
with
77 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef TAGTRANSFORM_C_H | ||
#define TAGTRANSFORM_C_H | ||
|
||
#include "tagtransform.hpp" | ||
|
||
class c_tagtransform_t : public tagtransform_t | ||
{ | ||
public: | ||
c_tagtransform_t(options_t const *options); | ||
|
||
bool filter_tags(osmium::OSMObject const &o, int *polygon, int *roads, | ||
export_list const &exlist, taglist_t &out_tags, | ||
bool strict = false) override; | ||
|
||
unsigned filter_rel_member_tags(taglist_t const &rel_tags, | ||
multitaglist_t const &member_tags, | ||
rolelist_t const &member_roles, | ||
int *member_superseded, int *make_boundary, | ||
int *make_polygon, int *roads, | ||
export_list const &exlist, | ||
taglist_t &out_tags, | ||
bool allow_typeless = false) override; | ||
|
||
private: | ||
options_t const *m_options; | ||
}; | ||
|
||
#endif // TAGTRANSFORM_C_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#ifndef TAGTRANSFORM_LUA_H | ||
#define TAGTRANSFORM_LUA_H | ||
|
||
#include <string> | ||
|
||
#include "tagtransform.hpp" | ||
|
||
extern "C" { | ||
#include <lua.h> | ||
} | ||
|
||
class lua_tagtransform_t : public tagtransform_t | ||
{ | ||
public: | ||
lua_tagtransform_t(options_t const *options); | ||
~lua_tagtransform_t(); | ||
|
||
bool filter_tags(osmium::OSMObject const &o, int *polygon, int *roads, | ||
export_list const &exlist, taglist_t &out_tags, | ||
bool strict = false) override; | ||
|
||
unsigned filter_rel_member_tags(taglist_t const &rel_tags, | ||
multitaglist_t const &member_tags, | ||
rolelist_t const &member_roles, | ||
int *member_superseded, int *make_boundary, | ||
int *make_polygon, int *roads, | ||
export_list const &exlist, | ||
taglist_t &out_tags, | ||
bool allow_typeless = false) override; | ||
|
||
private: | ||
void check_lua_function_exists(std::string const &func_name); | ||
|
||
lua_State *L; | ||
std::string m_node_func, m_way_func, m_rel_func, m_rel_mem_func; | ||
bool m_extra_attributes; | ||
}; | ||
|
||
#endif // TAGTRANSFORM_LUA_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters