| 312 | }; |
| 313 | |
| 314 | ShapeGenerator ShapeGeneratorFactory::create(ConstructionShape shape) |
| 315 | { |
| 316 | switch (shape) { |
| 317 | case ConstructionShape_Segment: |
| 318 | return std::make_shared<_SegmentGenerator>(); |
| 319 | case ConstructionShape_Triangle: |
| 320 | return std::make_shared<_TriangleGenerator>(); |
| 321 | case ConstructionShape_Rectangle: |
| 322 | return std::make_shared<_RectangleGenerator>(); |
| 323 | case ConstructionShape_Hexagon: |
| 324 | return std::make_shared<_HexagonGenerator>(); |
| 325 | case ConstructionShape_Loop: |
| 326 | return std::make_shared<_LoopGenerator>(); |
| 327 | case ConstructionShape_Tube: |
| 328 | return std::make_shared<_TubeGenerator>(); |
| 329 | case ConstructionShape_Lolli: |
| 330 | return std::make_shared<_LolliGenerator>(); |
| 331 | case ConstructionShape_SmallLolli: |
| 332 | return std::make_shared<_SmallLolliGenerator>(); |
| 333 | case ConstructionShape_Zigzag: |
| 334 | return std::make_shared<_ZigzagGenerator>(); |
| 335 | } |
| 336 | return nullptr; |
| 337 | } |
nothing calls this directly
no outgoing calls
no test coverage detected