Example #1
0
        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);
        }
Example #2
0
 /// <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");
 }
Example #3
0
 /// <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");
 }