Definition of a new collection class
// ---------------------- Template class instantiaton --------------
#include <NCollection_Sequence.hxx>
#include <gp_Pnt.hxx>
typedef NCollection_Sequence<gp_Pnt> MyPackage_SequenceOfPnt;
// ---------------------- Macro instantiaton -----------------------
#include <NCollection_DefineSequence.hxx>
#include <gp_Pnt.hxx>
// The following line defines the class "base collection of points"
DEFINE_BASECOLLECTION(MyPackage_BaseCollPnt, gp_Pnt)
// The following line defines the class MyPackage_SequenceOfPnt
DEFINE_SEQUENCE (MyPackage_SequenceOfPnt, MyPackage_BaseCollPnt , gp_Pnt)