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); }
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); //archiver->inout(std::string("domainID"), domainID); //archiver->inout<Topic>(std::string("topics"), topics); //archiver->inout(std::string("domainAddress"), domainAddress); //archiver->inout(std::string("localInterface"), localInterface); domainID = archive.Inout("domainID", domainID); topics = (List <Topic>)archive.InoutSerializableList("topics", topics); domainAddress = archive.Inout("domainAddress", domainAddress); localInterface = archive.Inout("localInterface", localInterface); //archiver->inout(std::string("timeToLive"), timeToLive); //archiver->inout(std::string("inSocketBufferSize"), inSocketBufferSize); //archiver->inout(std::string("outSocketBufferSize"), outSocketBufferSize); //archiver->inout(std::string("metaDataMcPort"), metaDataMcPort); timeToLive = archive.Inout("timeToLive", timeToLive); inSocketBufferSize = archive.Inout("inSocketBufferSize", inSocketBufferSize); outSocketBufferSize = archive.Inout("outSocketBufferSize", outSocketBufferSize); metaDataMcPort = archive.Inout("metaDataMcPort", metaDataMcPort); }
/// /// <param name="archive"></param> virtual public void Serialize(IArchiverInOut archive) { if (IdlVersionMask != 0) { OPSObject_version = archive.Inout("OPSObject_version", OPSObject_version); } else { OPSObject_version = 0; } key = archive.Inout("key", key); }
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); }
public override void Serialize(IArchiverInOut archive) { base.Serialize(archive); if (IdlVersionMask != 0) { OPSConfig_version = archive.Inout("OPSConfig_version", OPSConfig_version); } else { OPSConfig_version = 0; } domains = (List <Domain>)archive.InoutSerializableList("domains", domains); }
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) { Domain_version = archive.Inout("Domain_version", Domain_version); } else { Domain_version = 0; } //archiver->inout(std::string("domainID"), domainID); //archiver->inout<Topic>(std::string("topics"), topics); //archiver->inout(std::string("domainAddress"), domainAddress); //archiver->inout(std::string("localInterface"), localInterface); domainID = archive.Inout("domainID", domainID); topics = (List <Topic>)archive.InoutSerializableList("topics", topics); domainAddress = archive.Inout("domainAddress", domainAddress); localInterface = archive.Inout("localInterface", localInterface); //archiver->inout(std::string("timeToLive"), timeToLive); //archiver->inout(std::string("inSocketBufferSize"), inSocketBufferSize); //archiver->inout(std::string("outSocketBufferSize"), outSocketBufferSize); //archiver->inout(std::string("metaDataMcPort"), metaDataMcPort); timeToLive = archive.Inout("timeToLive", timeToLive); inSocketBufferSize = archive.Inout("inSocketBufferSize", inSocketBufferSize); outSocketBufferSize = archive.Inout("outSocketBufferSize", outSocketBufferSize); metaDataMcPort = archive.Inout("metaDataMcPort", metaDataMcPort); // To not break binary compatibility we only do this when we know we are // reading from an XML-file if (archive is XMLArchiverIn) { //archiver->inout<Channel>(std::string("channels"), channels); //archiver->inout<Transport>(std::string("transports"), transports); channels = (List <Channel>)archive.InoutSerializableList("channels", channels); transports = (List <Transport>)archive.InoutSerializableList("transports", transports); optNonVirt = archive.Inout("optNonVirt", optNonVirt); checkTransports(); } }
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); }
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); }
public override void Serialize(IArchiverInOut archive) { base.Serialize(archive); domains = (List <Domain>)archive.InoutSerializableList("domains", domains); }
/// /// <param name="archive"></param> virtual public void Serialize(IArchiverInOut archive) { key = archive.Inout("key", key); }