What is the best way to implement an analytic curve in OpenCascade.

I want in my library to allow the user to define a curve using analytic expressions. Can I do it with opencascade and what the best way for that?