Adding multiple consecutive lines and arcs to a collection / list

Hello! I like to put a beginner question: From a numerical file I want to create a list / a collection, consisting of lines and arcs - possible of type gp_Lin and gp_Circ, created one after another as a chain / polyline. The lines read are of several categories (different color) but the arcs have the same type. The final goal is to display this list into OpenCascade 3D viewer in the order in which they were created / read. What could be the best approach? Thank you!