| 767 | } |
| 768 | |
| 769 | std::pair<Ifc4x3_add2::IfcCurveSegment*, Ifc4x3_add2::IfcCurveSegment*> mapAlignmentCantSegment(const Ifc4x3_add2::IfcAlignmentCantSegment* segment) { |
| 770 | std::pair<Ifc4x3_add2::IfcCurveSegment*, Ifc4x3_add2::IfcCurveSegment*> result(nullptr, nullptr); |
| 771 | auto type = segment->PredefinedType(); |
| 772 | if (type == Ifc4x3_add2::IfcAlignmentCantSegmentTypeEnum::IfcAlignmentCantSegmentType_BLOSSCURVE) { |
| 773 | Logger::Warning(std::string("mapping of AlignmentCantSegmentType BLOSSCURVE not supported")); |
| 774 | } else if (type == Ifc4x3_add2::IfcAlignmentCantSegmentTypeEnum::IfcAlignmentCantSegmentType_CONSTANTCANT) { |
| 775 | Logger::Warning(std::string("mapping of AlignmentCantSegmentType CONSTANTCANT not supported")); |
| 776 | } else if (type == Ifc4x3_add2::IfcAlignmentCantSegmentTypeEnum::IfcAlignmentCantSegmentType_COSINECURVE) { |
| 777 | Logger::Warning(std::string("mapping of AlignmentCantSegmentType COSINECURVE not supported")); |
| 778 | } else if (type == Ifc4x3_add2::IfcAlignmentCantSegmentTypeEnum::IfcAlignmentCantSegmentType_HELMERTCURVE) { |
| 779 | Logger::Warning(std::string("mapping of AlignmentCantSegmentType HELMERTCURVE not supported")); |
| 780 | } else if (type == Ifc4x3_add2::IfcAlignmentCantSegmentTypeEnum::IfcAlignmentCantSegmentType_LINEARTRANSITION) { |
| 781 | Logger::Warning(std::string("mapping of AlignmentCantSegmentType LINEARTRANSTION not supported")); |
| 782 | } else if (type == Ifc4x3_add2::IfcAlignmentCantSegmentTypeEnum::IfcAlignmentCantSegmentType_SINECURVE) { |
| 783 | Logger::Warning(std::string("mapping of AlignmentCantSegmentType SINECURVE not supported")); |
| 784 | } else if (type == Ifc4x3_add2::IfcAlignmentCantSegmentTypeEnum::IfcAlignmentCantSegmentType_VIENNESEBEND) { |
| 785 | Logger::Warning(std::string("mapping of AlignmentCantSegmentType VIENNESEBEND not supported")); |
| 786 | } else { |
| 787 | Logger::Error(std::string("unexpected AlignmentCantSegmentType encountered")); |
| 788 | } |
| 789 | return result; |
| 790 | } |
| 791 | #endif |
no test coverage detected