示例#1
0
        GetDataWriterQos(
            ref DataWriterQos datawriterQos,
            string id)
        {
            NamedDataWriterQos dwQos     = new NamedDataWriterQos();
            GCHandle           qosHandle = GCHandle.Alloc(dwQos, GCHandleType.Normal);
            ReturnCode         result    = OpenSplice.Common.QosProvider.GetDataWriterQos(GapiPeer, id, GCHandle.ToIntPtr(qosHandle));

            datawriterQos = dwQos.DatawriterQos;
            qosHandle.Free();
            return(result);
        }
示例#2
0
        GetDataWriterQos(
            ref DataWriterQos datawriterQos,
            string id)
        {
            ReportStack.Start();
            NamedDataWriterQos dwQos     = new NamedDataWriterQos();
            GCHandle           qosHandle = GCHandle.Alloc(dwQos, GCHandleType.Normal);
            ReturnCode         result    = qpResultToReturnCode(
                OpenSplice.Common.QosProvider.GetDataWriterQos(cmnQpPtr, id, GCHandle.ToIntPtr(qosHandle)));

            if (result == ReturnCode.Ok)
            {
                datawriterQos = dwQos.DatawriterQos;
            }
            else
            {
                ReportStack.Report(result, "Could not copy datawriterQos.");
            }

            qosHandle.Free();
            ReportStack.Flush(null, result != ReturnCode.Ok);
            return(result);
        }
示例#3
0
 GetDataWriterQos (
     ref DataWriterQos datawriterQos,
     string id)
 {
     NamedDataWriterQos dwQos = new NamedDataWriterQos();
     GCHandle qosHandle = GCHandle.Alloc(dwQos, GCHandleType.Normal);
     ReturnCode result = OpenSplice.Common.QosProvider.GetDataWriterQos(GapiPeer, id, GCHandle.ToIntPtr(qosHandle));
     datawriterQos = dwQos.DatawriterQos;
     qosHandle.Free();
     return result;
 }