| 59 | // ColumnPath |
| 60 | |
| 61 | std::shared_ptr<ColumnPath> ColumnPath::FromDotString(const std::string& dotstring) { |
| 62 | std::stringstream ss(dotstring); |
| 63 | std::string item; |
| 64 | std::vector<std::string> path; |
| 65 | while (std::getline(ss, item, '.')) { |
| 66 | path.push_back(item); |
| 67 | } |
| 68 | return std::make_shared<ColumnPath>(std::move(path)); |
| 69 | } |
| 70 | |
| 71 | std::shared_ptr<ColumnPath> ColumnPath::FromNode(const Node& node) { |
| 72 | // Build the path in reverse order as we traverse the nodes to the top |