Пример #1
0
        internal static V_RESULT CopyOut(ref v_topicStatus from, DDS.OpenSplice.Common.TopicStatus to)
        {
            to.State             = (uint)from._parent.state;
            to.InconsistentTopic = new InconsistentTopicStatus();

            InconsistentTopicStatusMarshaler.CopyOut(ref from.inconsistentTopic, to.InconsistentTopic);
            return(V_RESULT.OK);
        }
Пример #2
0
        internal static V_RESULT CopyOut(IntPtr fromPtr, IntPtr toPtr)
        {
            v_topicStatus from = (v_topicStatus)Marshal.PtrToStructure(fromPtr, type);

            GCHandle toGCHandle = GCHandle.FromIntPtr(toPtr);

            DDS.OpenSplice.Common.TopicStatus to = toGCHandle.Target as DDS.OpenSplice.Common.TopicStatus;

            V_RESULT result = CopyOut(ref from, to);

            toGCHandle.Target = to;
            return(result);
        }
Пример #3
0
        internal override void NotifyListener(Entity source, V_EVENT triggerMask, DDS.OpenSplice.Common.EntityStatus status)
        {
            ITopicListener tpListener = listener as ITopicListener;

            if (tpListener != null)
            {
                DDS.OpenSplice.Common.TopicStatus topicStatus = status as DDS.OpenSplice.Common.TopicStatus;

                if ((triggerMask & V_EVENT.INCONSISTENT_TOPIC) == V_EVENT.INCONSISTENT_TOPIC)
                {
                    tpListener.OnInconsistentTopic(source as ITopic, topicStatus.InconsistentTopic);
                }

                /*if ((triggerMask & V_EVENT.ALL_DATA_DISPOSED) == V_EVENT.ALL_DATA_DISPOSED)
                 * {
                 *  IDomainParticipantListener dpExtListener = listener as IExtDomainParticipantListener;
                 *  Debug.Assert(dpExtListener != null);
                 *  dpExtListener.OnAllDataDisposed(source as ITopic);
                 * }*/
            }
        }