StepElement_ElementOrder aTopologyOrder;
if (data->ParamType (num, 1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 1);
- if (strcmp(text, ".LINEAR.")) aTopologyOrder = StepElement_Linear;
- else if (strcmp(text, ".QUADRATIC.")) aTopologyOrder = StepElement_Quadratic;
- else if (strcmp(text, ".CUBIC.")) aTopologyOrder = StepElement_Cubic;
+ if (strcmp(text, ".LINEAR.") == 0) aTopologyOrder = StepElement_Linear;
+ else if (strcmp(text, ".QUADRATIC.") == 0) aTopologyOrder = StepElement_Quadratic;
+ else if (strcmp(text, ".CUBIC.") == 0) aTopologyOrder = StepElement_Cubic;
else ach->AddFail("Parameter #1 (topology_order) has not allowed value");
}
else ach->AddFail("Parameter #1 (topology_order) is not enumeration");
StepFEA_CoordinateSystemType aSystemType;
if (data->ParamType (num, 5) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 5);
- if (strcmp(text, ".CARTESIAN.")) aSystemType = StepFEA_Cartesian;
- else if (strcmp(text, ".CYLINDRICAL.")) aSystemType = StepFEA_Cylindrical;
- else if (strcmp(text, ".SPHERICAL.")) aSystemType = StepFEA_Spherical;
+ if (strcmp(text, ".CARTESIAN.") == 0) aSystemType = StepFEA_Cartesian;
+ else if (strcmp(text, ".CYLINDRICAL.") == 0) aSystemType = StepFEA_Cylindrical;
+ else if (strcmp(text, ".SPHERICAL.") == 0) aSystemType = StepFEA_Spherical;
else ach->AddFail("Parameter #5 (system_type) has not allowed value");
}
else ach->AddFail("Parameter #5 (system_type) is not enumeration");