+ cleanup/formatting
This commit is contained in:
parent
1b1bd4b02e
commit
7b620a9f71
2 changed files with 5 additions and 6 deletions
|
@ -42,7 +42,6 @@ class svg_parser : private boost::noncopyable
|
||||||
public:
|
public:
|
||||||
explicit svg_parser(svg_converter_type & path);
|
explicit svg_parser(svg_converter_type & path);
|
||||||
~svg_parser();
|
~svg_parser();
|
||||||
|
|
||||||
void parse(std::string const& filename);
|
void parse(std::string const& filename);
|
||||||
private:
|
private:
|
||||||
void process_node(xmlTextReaderPtr reader);
|
void process_node(xmlTextReaderPtr reader);
|
||||||
|
|
|
@ -135,7 +135,7 @@ struct wkt_grammar : qi::grammar<Iterator, geometry_type*(), ascii::space_type>
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
struct wkt_collection_grammar : qi::grammar<Iterator, boost::ptr_vector<mapnik::geometry_type>(), ascii::space_type>
|
struct wkt_collection_grammar : qi::grammar<Iterator, boost::ptr_vector<geometry_type>(), ascii::space_type>
|
||||||
{
|
{
|
||||||
wkt_collection_grammar()
|
wkt_collection_grammar()
|
||||||
: wkt_collection_grammar::base_type(start)
|
: wkt_collection_grammar::base_type(start)
|
||||||
|
@ -148,7 +148,7 @@ struct wkt_collection_grammar : qi::grammar<Iterator, boost::ptr_vector<mapnik::
|
||||||
>> (lit("(") >> *wkt[push_back(_val,_1)] % lit(",") >> lit(")"));
|
>> (lit("(") >> *wkt[push_back(_val,_1)] % lit(",") >> lit(")"));
|
||||||
}
|
}
|
||||||
|
|
||||||
qi::rule<Iterator,boost::ptr_vector<mapnik::geometry_type>(),ascii::space_type> start;
|
qi::rule<Iterator,boost::ptr_vector<geometry_type>(),ascii::space_type> start;
|
||||||
wkt_grammar<Iterator> wkt;
|
wkt_grammar<Iterator> wkt;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue