public TypeSupportFactory() { deleteEntityAction = DeleteEntityAction; }
/* This is the default constructor that is to be used by all DDS * classes that have a corresponding Gapi.Create<Entity> operation. * The constuctor of these classes should only be invoked AFTER the * gapi has created the corresponding gapi handles. */ protected SacsSuperClass(IntPtr gapiPtr) { this.deleteEntityAction = DeleteEntityAction; this.SetPeer(gapiPtr, false); }
/* This constructor is only used by all DDS classes that have a * default constructor (i.e. TypeSupport, WaitSet, GuardCondition). * It is due to the fact that the Gapi.<Entity>.alloc() needs to * be called in order to get a gapi handle, but this cannot be done * in the constructor in this stage. * The caller must call SetPeer and pass the gapi handle as soon as * he has obtained it. */ internal SacsSuperClass() { this.deleteEntityAction = null; }