Horizon
|
Public Types | |
using | LogCb = std::function< void(const std::string &, const std::string &)> |
Public Member Functions | |
void | set_log_cb (LogCb cb) |
Protected Member Functions | |
class Line * | parse_line (const SEXPR::SEXPR *data) |
void | parse_poly (const SEXPR::SEXPR *data) |
Junction * | get_or_create_junction (const Coordi &c) |
virtual class Junction & | create_junction ()=0 |
virtual class Polygon & | create_polygon ()=0 |
virtual class Line & | create_line ()=0 |
Static Protected Member Functions | |
static int | get_layer (const std::string &l) |
static Coordi | get_coord (const SEXPR::SEXPR *data, size_t offset=1) |
static Coordi | get_size (const SEXPR::SEXPR *data, size_t offset=1) |
Protected Attributes | |
std::map< Coordi, class Junction * > | junctions |
LogCb | log_cb |