Ejemplo n.º 1
0
 public override void Serialize(IArchiverInOut archive)
 {
     base.Serialize(archive);
     bearnaise = archive.Inout("bearnaise", bearnaise);
     beef      = archive.Inout("beef", beef);
     _p        = (List <pizza.PizzaData>)archive.InoutSerializableList("p", _p);
 }
Ejemplo n.º 2
0
 public override void Serialize(IArchiverInOut archive)
 {
     base.Serialize(archive);
     bo               = archive.Inout("bo", bo);
     b                = archive.Inout("b", b);
     i                = archive.Inout("i", i);
     l                = archive.Inout("l", l);
     f                = archive.Inout("f", f);
     d                = archive.Inout("d", d);
     s                = archive.Inout("s", s);
     _test2           = (TestData)archive.Inout("test2", _test2);
     _testPointer     = (TestAll.TestData)archive.Inout("testPointer", _testPointer);
     _fruit           = (Fruit)archive.Inout("fruit", _fruit);
     _bos             = (List <bool>)archive.InoutBooleanList("bos", _bos);
     _bs              = (List <byte>)archive.InoutByteList("bs", _bs);
     _is_             = (List <int>)archive.InoutIntegerList("is_", _is_);
     _ls              = (List <long>)archive.InoutLongList("ls", _ls);
     _fs              = (List <float>)archive.InoutFloatList("fs", _fs);
     _ds              = (List <double>)archive.InoutDoubleList("ds", _ds);
     _ss              = (List <string>)archive.InoutStringList("ss", _ss);
     _test2s          = (List <TestData>)archive.InoutSerializableList("test2s", _test2s);
     _secondVirtArray = (List <TestData>)archive.InoutSerializableList("secondVirtArray", _secondVirtArray);
     _test2s2         = (List <TestData>)archive.InoutSerializableList("test2s2", _test2s2);
 }
Ejemplo n.º 3
0
 public override void Serialize(IArchiverInOut archive)
 {
     base.Serialize(archive);
     extraCheese      = archive.Inout("extraCheese", extraCheese);
     nrOfMushRooms    = archive.Inout("nrOfMushRooms", nrOfMushRooms);
     meetQuality      = archive.Inout("meetQuality", meetQuality);
     timestamp        = archive.Inout("timestamp", timestamp);
     timeBakedHours   = archive.Inout("timeBakedHours", timeBakedHours);
     timeBakedSeconds = archive.Inout("timeBakedSeconds", timeBakedSeconds);
     description      = archive.Inout("description", description);
     _cheese_         = (pizza.special.Cheese)archive.Inout("cheese_", _cheese_);
     _bools           = (List <bool>)archive.InoutBooleanList("bools", _bools);
     _bytes           = (List <byte>)archive.InoutByteList("bytes", _bytes);
     _ints            = (List <int>)archive.InoutIntegerList("ints", _ints);
     _longs           = (List <long>)archive.InoutLongList("longs", _longs);
     _floats          = (List <float>)archive.InoutFloatList("floats", _floats);
     _doubles         = (List <double>)archive.InoutDoubleList("doubles", _doubles);
     _strings         = (List <string>)archive.InoutStringList("strings", _strings);
     _cheeses         = (List <pizza.special.Cheese>)archive.InoutSerializableList("cheeses", _cheeses);
 }
Ejemplo n.º 4
0
        public override void Serialize(IArchiverInOut archive)
        {
            base.Serialize(archive);

            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);
        }
Ejemplo n.º 5
0
 public override void Serialize(IArchiverInOut archive)
 {
     base.Serialize(archive);
     extraCheese = archive.Inout("extraCheese", extraCheese);
     nrOfMushRooms = archive.Inout("nrOfMushRooms", nrOfMushRooms);
     meetQuality = archive.Inout("meetQuality", meetQuality);
     timestamp = archive.Inout("timestamp", timestamp);
     timeBakedHours = archive.Inout("timeBakedHours", timeBakedHours);
     timeBakedSeconds = archive.Inout("timeBakedSeconds", timeBakedSeconds);
     description = archive.Inout("description", description);
     _cheese_ = (pizza.special.Cheese) archive.Inout("cheese_", _cheese_);
     _bools = (List<bool>) archive.InoutBooleanList("bools", _bools);
     _bytes = (List<byte>) archive.InoutByteList("bytes", _bytes);
     _ints = (List<int>) archive.InoutIntegerList("ints", _ints);
     _longs = (List<long>) archive.InoutLongList("longs", _longs);
     _floats = (List<float>) archive.InoutFloatList("floats", _floats);
     _doubles = (List<double>) archive.InoutDoubleList("doubles", _doubles);
     _strings = (List<string>) archive.InoutStringList("strings", _strings);
     _cheeses = (List<pizza.special.Cheese>) archive.InoutSerializableList("cheeses", _cheeses);
 }
Ejemplo n.º 6
0
 public override void Serialize(IArchiverInOut archive)
 {
     base.Serialize(archive);
     bearnaise = archive.Inout("bearnaise", bearnaise);
     beef = archive.Inout("beef", beef);
     _p = (List<pizza.PizzaData>) archive.InoutSerializableList("p", _p);
 }
Ejemplo n.º 7
0
 public override void Serialize(IArchiverInOut archive)
 {
     base.Serialize(archive);
     domains = (List<Domain>)archive.InoutSerializableList("domains", domains);
 }
Ejemplo n.º 8
0
Archivo: Domain.cs Proyecto: staxgr/ops
        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);
        }