| 100 | } |
| 101 | |
| 102 | static std::string q2s_cell (db::LayoutQueryIterator &iq, const std::string &pname) |
| 103 | { |
| 104 | iq.reset (); |
| 105 | std::string res; |
| 106 | while (! iq.at_end ()) { |
| 107 | if (!res.empty ()) { |
| 108 | res += ","; |
| 109 | } |
| 110 | tl::Variant v; |
| 111 | iq.get (pname, v); |
| 112 | if (v.is_nil ()) { |
| 113 | res += v.to_string (); |
| 114 | } else { |
| 115 | res += iq.layout ()->cell_name (v.to_ulong ()); |
| 116 | } |
| 117 | ++iq; |
| 118 | } |
| 119 | return res; |
| 120 | } |
| 121 | |
| 122 | TEST(0) |
| 123 | { |