How to decide the type of a curve?

How to decide which type is the curve, such as Geom_Curve object?
Is it a circle, line, bspline or other types?
How to decide?

m-sazonov's picture

if (aCurve->IsKind(STANDARD_TYPE(Geom_Circle)))
...
else if (aCurve->IsKind(STANDARD_TYPE(Geom_Line)))
...