Exemplo n.º 1
0
        public override void Serialize(IArchiverInOut archive)
        {
            base.Serialize(archive);

            if (IdlVersionMask != 0)
            {
                ParticipantInfoData_version = archive.Inout("ParticipantInfoData_version", ParticipantInfoData_version);
            }
            else
            {
                ParticipantInfoData_version = 0;
            }

            name   = archive.Inout("name", name);
            domain = archive.Inout("domain", domain);
            id     = archive.Inout("id", id);
            ip     = archive.Inout("ip", ip);
            languageImplementation = archive.Inout("languageImplementation", languageImplementation);
            opsVersion             = archive.Inout("opsVersion", opsVersion);
            mc_udp_port            = archive.Inout("mc_udp_port", mc_udp_port);
            mc_tcp_port            = archive.Inout("mc_tcp_port", mc_tcp_port);
            _subscribeTopics       = (List <TopicInfoData>)archive.InoutSerializableList <TopicInfoData>("subscribeTopics", _subscribeTopics);
            _publishTopics         = (List <TopicInfoData>)archive.InoutSerializableList <TopicInfoData>("publishTopics", _publishTopics);
            _knownTypes            = (List <string>)archive.InoutStringList("knownTypes", _knownTypes);
        }
Exemplo n.º 2
0
        public override void Serialize(IArchiverInOut archive)
        {
            base.Serialize(archive);

            name      = archive.Inout("name", name);
            type      = archive.Inout("type", type);
            transport = archive.Inout("transport", transport);
            address   = archive.Inout("address", address);
            port      = archive.Inout("port", port);
            _keys     = (List <string>)archive.InoutStringList("keys", _keys);

            //archiver->inout(std::string("filters"), filters);
        }
Exemplo n.º 3
0
        public override void Serialize(IArchiverInOut archive)
        {
            base.Serialize(archive);

            if (IdlVersionMask != 0)
            {
                TopicInfoData_version = archive.Inout("TopicInfoData_version", TopicInfoData_version);
            }
            else
            {
                TopicInfoData_version = 0;
            }

            name      = archive.Inout("name", name);
            type      = archive.Inout("type", type);
            transport = archive.Inout("transport", transport);
            address   = archive.Inout("address", address);
            port      = archive.Inout("port", port);
            _keys     = (List <string>)archive.InoutStringList("keys", _keys);
        }
Exemplo n.º 4
0
        public override void Serialize(IArchiverInOut archive)
        {
            // NOTE. Keep this in sync with the C++ version, so it in theory is possible to send these as objects.
            // We need to serialize fields in the same order as C++.
            //OPSObject::serialize(archiver);
            base.Serialize(archive);

            if (IdlVersionMask != 0)
            {
                Transport_version = archive.Inout("Transport_version", Transport_version);
            }
            else
            {
                Transport_version = 0;
            }

            //archiver->inout(std::string("channelID"), channelID);
            channelID = archive.Inout("channelID", channelID);

            //archiver->inout(std::string("topics"), topics);
            topics = (List <string>)archive.InoutStringList("topics", topics);
        }