public ITypeSupport LookupTypeSupport(string registeredTypeName) { ITypeSupport typeSupport = null; IntPtr gapiPtr = Gapi.DomainParticipant.lookup_typesupport( GapiPeer, registeredTypeName); if (gapiPtr != IntPtr.Zero) { typeSupport = SacsSuperClass.fromUserData(gapiPtr) as ITypeSupport; } return(typeSupport); }
/// <summary> /// Register the type we are interested with the DDS Infrastructure /// </summary> /// <param name="ts">The TypeSupport class</param> public void registerType(ITypeSupport ts) { typeName = ts.TypeName; status = ts.RegisterType(participant, typeName); ErrorHandler.checkStatus(status, "ITypeSupport.RegisterType"); }
/// <summary> /// Register the type we are interested with the DDS Infrastructure /// </summary> /// <param name="ts">The TypeSupport class</param> public void registerType(ITypeSupport ts) { typeName = ts.TypeName; status = ts.RegisterType(participant, typeName); ErrorHandler.checkStatus(status, "ITypeSupport.RegisterType"); }