2 Copyright 2010 Intel Corporation
4 Use, modification and distribution are subject to the Boost Software License,
5 Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt).
10 #ifndef BOOST_POLYGON_TUTORIAL_PARSE_LAYOUT_HPP
11 #define BOOST_POLYGON_TUTORIAL_PARSE_LAYOUT_HPP
16 #include "layout_rectangle.hpp"
17 #include "layout_pin.hpp"
19 //populates vectors of layout rectangles and pins
20 inline void parse_layout(std::vector<layout_rectangle>& rects, std::vector<layout_pin>& pins,
25 if(type_id == "Rectangle") {
26 layout_rectangle rect;
28 rects.push_back(rect);
29 } else if (type_id == "Pin") {
33 } else if (type_id == "") {