Allow bi-directional conversion to JSON
| 24 | |
| 25 | // Allow bi-directional conversion to JSON |
| 26 | BT_JSON_CONVERTER(Point2D, point) |
| 27 | { |
| 28 | add_field("x", &point.x); |
| 29 | add_field("y", &point.y); |
| 30 | } |
| 31 | |
| 32 | // We can extend the traditional BT::convertFromString<Point2D>() |
| 33 | // to support the JSON format too (see port with name "pointE") |
nothing calls this directly
no outgoing calls
no test coverage detected