Ejemplo n.º 1
0
        public static state Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            state _state = new state();

            _state.m_rocrailClient   = rocrailClient;
            _state.m_accessorybus    = (bool?)xml.Attribute("accessorybus");
            _state.m_consolemode     = (bool?)xml.Attribute("consolemode");
            _state.m_emergency       = (bool?)xml.Attribute("emergency");
            _state.m_healthy         = (bool?)xml.Attribute("healthy");
            _state.m_iid             = (string)xml.Attribute("iid");
            _state.m_load            = (int?)xml.Attribute("load");
            _state.m_loadmax         = (int?)xml.Attribute("loadmax");
            _state.m_needkey4loconet = (bool?)xml.Attribute("needkey4loconet");
            _state.m_power           = (bool?)xml.Attribute("power");
            _state.m_programming     = (bool?)xml.Attribute("programming");
            _state.m_ptload          = (int?)xml.Attribute("ptload");
            _state.m_sensorbus       = (bool?)xml.Attribute("sensorbus");
            _state.m_shortcut        = (bool?)xml.Attribute("shortcut");
            _state.m_temp            = (int?)xml.Attribute("temp");
            _state.m_tempmax         = (int?)xml.Attribute("tempmax");
            _state.m_trackbus        = (bool?)xml.Attribute("trackbus");
            _state.m_uid             = (int?)xml.Attribute("uid");
            _state.m_volt            = (int?)xml.Attribute("volt");
            _state.m_voltmin         = (int?)xml.Attribute("voltmin");
            return(_state);
        }
Ejemplo n.º 2
0
        public static item Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            item _item = new item();

            _item.m_rocrailClient = rocrailClient;
            _item.m_addr          = (int?)xml.Attribute("addr");
            _item.m_blockid       = (string)xml.Attribute("blockid");
            _item.m_bus           = (int?)xml.Attribute("bus");
            _item.m_cx            = (int?)xml.Attribute("cx");
            _item.m_cy            = (int?)xml.Attribute("cy");
            _item.m_desc          = (string)xml.Attribute("desc");
            _item.m_generated     = (bool?)xml.Attribute("generated");
            _item.m_id            = (string)xml.Attribute("id");
            _item.m_iid           = (string)xml.Attribute("iid");
            _item.m_len           = (int?)xml.Attribute("len");
            _item.m_name          = (string)xml.Attribute("name");
            _item.m_oid           = (string)xml.Attribute("oid");
            _item.m_ori           = (string)xml.Attribute("ori");
            _item.m_prev_id       = (string)xml.Attribute("prev_id");
            _item.m_prev_ori      = (string)xml.Attribute("prev_ori");
            _item.m_prev_x        = (int?)xml.Attribute("prev_x");
            _item.m_prev_y        = (int?)xml.Attribute("prev_y");
            _item.m_road          = (bool?)xml.Attribute("road");
            _item.m_routeids      = (string)xml.Attribute("routeids");
            _item.m_show          = (bool?)xml.Attribute("show");
            _item.m_state         = (string)xml.Attribute("state");
            _item.m_type          = (string)xml.Attribute("type");
            _item.m_x             = (int?)xml.Attribute("x");
            _item.m_y             = (int?)xml.Attribute("y");
            _item.m_z             = (int?)xml.Attribute("z");
            return(_item);
        }
Ejemplo n.º 3
0
        public static actionctrl Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            actionctrl _actionctrl = new actionctrl();

            _actionctrl.m_rocrailClient = rocrailClient;
            _actionctrl.m_auto          = (bool?)xml.Attribute("auto");
            _actionctrl.m_bkid          = (string)xml.Attribute("bkid");
            _actionctrl.m_carcount      = (int?)xml.Attribute("carcount");
            _actionctrl.m_countedcars   = (int?)xml.Attribute("countedcars");
            _actionctrl.m_counter       = (int?)xml.Attribute("counter");
            _actionctrl.m_deact         = (string)xml.Attribute("deact");
            _actionctrl.m_desc          = (string)xml.Attribute("desc");
            _actionctrl.m_id            = (string)xml.Attribute("id");
            _actionctrl.m_lcid          = (string)xml.Attribute("lcid");
            _actionctrl.m_load          = (int?)xml.Attribute("load");
            _actionctrl.m_manual        = (bool?)xml.Attribute("manual");
            _actionctrl.m_param         = (string)xml.Attribute("param");
            _actionctrl.m_reset         = (bool?)xml.Attribute("reset");
            _actionctrl.m_state         = (string)xml.Attribute("state");
            _actionctrl.m_temp          = (int?)xml.Attribute("temp");
            _actionctrl.m_volt          = (int?)xml.Attribute("volt");
            _actionctrl.m_wheelcount    = (int?)xml.Attribute("wheelcount");
            Definitions.Tools.ParseList <actioncond>(_actionctrl.m_actioncondlist, xml, "actioncond", actioncond.Parse, rocrailClient);
            return(_actionctrl);
        }
Ejemplo n.º 4
0
        public static Cmdline Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            Cmdline _Cmdline = new Cmdline();

            _Cmdline.m_rocrailClient = rocrailClient;
            return(_Cmdline);
        }
Ejemplo n.º 5
0
        public static jsmap Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            jsmap _jsmap = new jsmap();

            _jsmap.m_rocrailClient = rocrailClient;
            _jsmap.m_f1            = (int?)xml.Attribute("f1");
            _jsmap.m_f10           = (int?)xml.Attribute("f10");
            _jsmap.m_f11           = (int?)xml.Attribute("f11");
            _jsmap.m_f12           = (int?)xml.Attribute("f12");
            _jsmap.m_f2            = (int?)xml.Attribute("f2");
            _jsmap.m_f3            = (int?)xml.Attribute("f3");
            _jsmap.m_f4            = (int?)xml.Attribute("f4");
            _jsmap.m_f5            = (int?)xml.Attribute("f5");
            _jsmap.m_f6            = (int?)xml.Attribute("f6");
            _jsmap.m_f7            = (int?)xml.Attribute("f7");
            _jsmap.m_f8            = (int?)xml.Attribute("f8");
            _jsmap.m_f9            = (int?)xml.Attribute("f9");
            _jsmap.m_leftright     = (int?)xml.Attribute("leftright");
            _jsmap.m_light         = (int?)xml.Attribute("light");
            _jsmap.m_poweroff      = (int?)xml.Attribute("poweroff");
            _jsmap.m_poweron       = (int?)xml.Attribute("poweron");
            _jsmap.m_repeat        = (int?)xml.Attribute("repeat");
            _jsmap.m_reverse       = (int?)xml.Attribute("reverse");
            _jsmap.m_select        = (int?)xml.Attribute("select");
            _jsmap.m_step          = (int?)xml.Attribute("step");
            _jsmap.m_stop          = (int?)xml.Attribute("stop");
            _jsmap.m_updown        = (int?)xml.Attribute("updown");
            return(_jsmap);
        }
Ejemplo n.º 6
0
        public static ac Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            ac _ac = new ac();

            _ac.m_rocrailClient = rocrailClient;
            _ac.m_actiontime    = (int?)xml.Attribute("actiontime");
            _ac.m_activate      = (bool?)xml.Attribute("activate");
            _ac.m_addr          = (int?)xml.Attribute("addr");
            _ac.m_bus           = (int?)xml.Attribute("bus");
            _ac.m_cmd           = (string)xml.Attribute("cmd");
            _ac.m_desc          = (string)xml.Attribute("desc");
            _ac.m_doublequote   = (bool?)xml.Attribute("doublequote");
            _ac.m_every         = (bool?)xml.Attribute("every");
            _ac.m_hour          = (int?)xml.Attribute("hour");
            _ac.m_id            = (string)xml.Attribute("id");
            _ac.m_iid           = (string)xml.Attribute("iid");
            _ac.m_min           = (int?)xml.Attribute("min");
            _ac.m_oid           = (string)xml.Attribute("oid");
            _ac.m_param         = (string)xml.Attribute("param");
            _ac.m_random        = (bool?)xml.Attribute("random");
            _ac.m_refid         = (string)xml.Attribute("refid");
            _ac.m_remark        = (string)xml.Attribute("remark");
            _ac.m_sec           = (int?)xml.Attribute("sec");
            _ac.m_sndfile       = (string)xml.Attribute("sndfile");
            _ac.m_sndvolume     = (int?)xml.Attribute("sndvolume");
            _ac.m_timed         = (bool?)xml.Attribute("timed");
            _ac.m_timer         = (int?)xml.Attribute("timer");
            _ac.m_type          = (string)xml.Attribute("type");
            return(_ac);
        }
Ejemplo n.º 7
0
        public static ddx Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            ddx _ddx = new ddx();

            _ddx.m_rocrailClient    = rocrailClient;
            _ddx.m_dcc              = (bool?)xml.Attribute("dcc");
            _ddx.m_fastcvget        = (bool?)xml.Attribute("fastcvget");
            _ddx.m_inversedsr       = (bool?)xml.Attribute("inversedsr");
            _ddx.m_mmlongpause      = (bool?)xml.Attribute("mmlongpause");
            _ddx.m_motorola         = (bool?)xml.Attribute("motorola");
            _ddx.m_motorolarefresh  = (bool?)xml.Attribute("motorolarefresh");
            _ddx.m_port             = (string)xml.Attribute("port");
            _ddx.m_portbase         = (string)xml.Attribute("portbase");
            _ddx.m_queuecheck       = (bool?)xml.Attribute("queuecheck");
            _ddx.m_realnmratiming   = (bool?)xml.Attribute("realnmratiming");
            _ddx.m_s88b0modcnt      = (int?)xml.Attribute("s88b0modcnt");
            _ddx.m_s88b1modcnt      = (int?)xml.Attribute("s88b1modcnt");
            _ddx.m_s88b2modcnt      = (int?)xml.Attribute("s88b2modcnt");
            _ddx.m_s88b3modcnt      = (int?)xml.Attribute("s88b3modcnt");
            _ddx.m_s88busses        = (int?)xml.Attribute("s88busses");
            _ddx.m_s88clockscale    = (int?)xml.Attribute("s88clockscale");
            _ddx.m_s88port          = (string)xml.Attribute("s88port");
            _ddx.m_s88refresh       = (int?)xml.Attribute("s88refresh");
            _ddx.m_shortcutchecking = (bool?)xml.Attribute("shortcutchecking");
            _ddx.m_shortcutdelay    = (int?)xml.Attribute("shortcutdelay");
            return(_ddx);
        }
Ejemplo n.º 8
0
        public static ConCmd Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            ConCmd _ConCmd = new ConCmd();

            _ConCmd.m_rocrailClient = rocrailClient;
            return(_ConCmd);
        }
Ejemplo n.º 9
0
        public static trace Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            trace _trace = new trace();

            _trace.m_rocrailClient = rocrailClient;
            _trace.m_automatic     = (bool?)xml.Attribute("automatic");
            _trace.m_byte          = (bool?)xml.Attribute("byte");
            _trace.m_calc          = (bool?)xml.Attribute("calc");
            _trace.m_debug         = (bool?)xml.Attribute("debug");
            _trace.m_dumpsize      = (int?)xml.Attribute("dumpsize");
            _trace.m_exceptionfile = (bool?)xml.Attribute("exceptionfile");
            _trace.m_gfile         = (string)xml.Attribute("gfile");
            _trace.m_info          = (bool?)xml.Attribute("info");
            _trace.m_invoke        = (string)xml.Attribute("invoke");
            _trace.m_invokeasync   = (bool?)xml.Attribute("invokeasync");
            _trace.m_listen2all    = (bool?)xml.Attribute("listen2all");
            _trace.m_meminfo       = (bool?)xml.Attribute("meminfo");
            _trace.m_monitor       = (bool?)xml.Attribute("monitor");
            _trace.m_nr            = (int?)xml.Attribute("nr");
            _trace.m_parse         = (bool?)xml.Attribute("parse");
            _trace.m_protpath      = (string)xml.Attribute("protpath");
            _trace.m_rfile         = (string)xml.Attribute("rfile");
            _trace.m_size          = (int?)xml.Attribute("size");
            _trace.m_unique        = (bool?)xml.Attribute("unique");
            return(_trace);
        }
Ejemplo n.º 10
0
        public static loconet Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            loconet _loconet = new loconet();

            _loconet.m_rocrailClient   = rocrailClient;
            _loconet.m_cmdstn          = (string)xml.Attribute("cmdstn");
            _loconet.m_ignorepowercmds = (bool?)xml.Attribute("ignorepowercmds");
            _loconet.m_purgetime       = (int?)xml.Attribute("purgetime");
            _loconet.m_reportaddr      = (int?)xml.Attribute("reportaddr");
            _loconet.m_resetlissy      = (bool?)xml.Attribute("resetlissy");
            _loconet.m_sensorquery     = (bool?)xml.Attribute("sensorquery");
            _loconet.m_slotping        = (bool?)xml.Attribute("slotping");
            _loconet.m_slots           = (int?)xml.Attribute("slots");
            _loconet.m_swack           = (bool?)xml.Attribute("swack");
            _loconet.m_swretry         = (int?)xml.Attribute("swretry");
            _loconet.m_swsleep         = (int?)xml.Attribute("swsleep");
            _loconet.m_syncfc          = (bool?)xml.Attribute("syncfc");
            _loconet.m_usedouble       = (bool?)xml.Attribute("usedouble");
            _loconet.m_usefc           = (bool?)xml.Attribute("usefc");
            _loconet.m_useidle         = (bool?)xml.Attribute("useidle");
            _loconet.m_useseq          = (bool?)xml.Attribute("useseq");
            Definitions.Tools.ParseList <options>(_loconet.m_optionslist, xml, "options", options.Parse, rocrailClient);
            Definitions.Tools.ParseList <slotserver>(_loconet.m_slotserverlist, xml, "slotserver", slotserver.Parse, rocrailClient);
            return(_loconet);
        }
Ejemplo n.º 11
0
        public static Global Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            Global _Global = new Global();

            _Global.m_rocrailClient = rocrailClient;
            return(_Global);
        }
Ejemplo n.º 12
0
        public static booster Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            booster _booster = new booster();

            _booster.m_rocrailClient     = rocrailClient;
            _booster.m_blockids          = (string)xml.Attribute("blockids");
            _booster.m_district          = (string)xml.Attribute("district");
            _booster.m_id                = (string)xml.Attribute("id");
            _booster.m_iid               = (string)xml.Attribute("iid");
            _booster.m_load              = (int?)xml.Attribute("load");
            _booster.m_loadmax           = (int?)xml.Attribute("loadmax");
            _booster.m_modids            = (string)xml.Attribute("modids");
            _booster.m_power             = (bool?)xml.Attribute("power");
            _booster.m_powerfb           = (string)xml.Attribute("powerfb");
            _booster.m_powersw           = (string)xml.Attribute("powersw");
            _booster.m_scfb              = (string)xml.Attribute("scfb");
            _booster.m_scopt_poweroffall = (bool?)xml.Attribute("scopt_poweroffall");
            _booster.m_scopt_repoweron   = (bool?)xml.Attribute("scopt_repoweron");
            _booster.m_scopt_stoplocos   = (bool?)xml.Attribute("scopt_stoplocos");
            _booster.m_shortcut          = (bool?)xml.Attribute("shortcut");
            _booster.m_temp              = (int?)xml.Attribute("temp");
            _booster.m_tempmax           = (int?)xml.Attribute("tempmax");
            _booster.m_uid               = (int?)xml.Attribute("uid");
            _booster.m_volt              = (int?)xml.Attribute("volt");
            _booster.m_voltmin           = (int?)xml.Attribute("voltmin");
            Definitions.Tools.ParseList <actionctrl>(_booster.m_actionctrllist, xml, "actionctrl", actionctrl.Parse, rocrailClient);
            Definitions.Tools.ParseList <boosterevent>(_booster.m_boostereventlist, xml, "boosterevent", boosterevent.Parse, rocrailClient);
            return(_booster);
        }
Ejemplo n.º 13
0
        public static sglist Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            sglist _sglist = new sglist();

            _sglist.m_rocrailClient = rocrailClient;
            Definitions.Tools.ParseList <sg>(_sglist.m_sglist, xml, "sg", sg.Parse, rocrailClient);
            return(_sglist);
        }
Ejemplo n.º 14
0
        public static decoderconfig Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            decoderconfig _decoderconfig = new decoderconfig();

            _decoderconfig.m_rocrailClient = rocrailClient;
            Definitions.Tools.ParseList <decoder>(_decoderconfig.m_decoderlist, xml, "decoder", decoder.Parse, rocrailClient);
            return(_decoderconfig);
        }
Ejemplo n.º 15
0
        public static log Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            log _log = new log();

            _log.m_rocrailClient = rocrailClient;
            Definitions.Tools.ParseList <logentry>(_log.m_logentrylist, xml, "logentry", logentry.Parse, rocrailClient);
            return(_log);
        }
Ejemplo n.º 16
0
        public static ext Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            ext _ext = new ext();

            _ext.m_rocrailClient = rocrailClient;
            _ext.m_cmdline       = (string)xml.Attribute("cmdline");
            return(_ext);
        }
Ejemplo n.º 17
0
        public static auto Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            auto _auto = new auto();

            _auto.m_rocrailClient = rocrailClient;
            _auto.m_cmd           = (string)xml.Attribute("cmd");
            return(_auto);
        }
Ejemplo n.º 18
0
        public static logentry Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            logentry _logentry = new logentry();

            _logentry.m_rocrailClient = rocrailClient;
            _logentry.m_revision      = (int?)xml.Attribute("revision");
            return(_logentry);
        }
Ejemplo n.º 19
0
        public static incl Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            incl _incl = new incl();

            _incl.m_rocrailClient = rocrailClient;
            _incl.m_id            = (string)xml.Attribute("id");
            return(_incl);
        }
Ejemplo n.º 20
0
        public static variables Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            variables _variables = new variables();

            _variables.m_rocrailClient = rocrailClient;
            Definitions.Tools.ParseList <variable>(_variables.m_variablelist, xml, "variable", variable.Parse, rocrailClient);
            return(_variables);
        }
Ejemplo n.º 21
0
        public static system Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            system _system = new system();

            _system.m_rocrailClient = rocrailClient;
            Definitions.Tools.ParseList <actionctrl>(_system.m_actionctrllist, xml, "actionctrl", actionctrl.Parse, rocrailClient);
            return(_system);
        }
Ejemplo n.º 22
0
        public static productlist Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            productlist _productlist = new productlist();

            _productlist.m_rocrailClient = rocrailClient;
            Definitions.Tools.ParseList <product>(_productlist.m_productlist, xml, "product", product.Parse, rocrailClient);
            return(_productlist);
        }
Ejemplo n.º 23
0
        public static fbinfo Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            fbinfo _fbinfo = new fbinfo();

            _fbinfo.m_rocrailClient = rocrailClient;
            Definitions.Tools.ParseList <fbmods>(_fbinfo.m_fbmodslist, xml, "fbmods", fbmods.Parse, rocrailClient);
            return(_fbinfo);
        }
Ejemplo n.º 24
0
        public static family Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            family _family = new family();

            _family.m_rocrailClient = rocrailClient;
            _family.m_mfg           = (string)xml.Attribute("mfg");
            _family.m_name          = (string)xml.Attribute("name");
            return(_family);
        }
Ejemplo n.º 25
0
        public static exception Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            exception _exception = new exception();

            _exception.m_rocrailClient = rocrailClient;
            _exception.m_level         = (int?)xml.Attribute("level");
            _exception.m_text          = (string)xml.Attribute("text");
            return(_exception);
        }
Ejemplo n.º 26
0
        public static linkcond Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            linkcond _linkcond = new linkcond();

            _linkcond.m_rocrailClient = rocrailClient;
            _linkcond.m_first         = (string)xml.Attribute("first");
            _linkcond.m_free          = (string)xml.Attribute("free");
            return(_linkcond);
        }
Ejemplo n.º 27
0
        public static fbmods Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            fbmods _fbmods = new fbmods();

            _fbmods.m_rocrailClient = rocrailClient;
            _fbmods.m_bus           = (int?)xml.Attribute("bus");
            _fbmods.m_modules       = (string)xml.Attribute("modules");
            return(_fbmods);
        }
Ejemplo n.º 28
0
        public static webcam Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            webcam _webcam = new webcam();

            _webcam.m_rocrailClient = rocrailClient;
            _webcam.m_imagefile     = (string)xml.Attribute("imagefile");
            _webcam.m_title         = (string)xml.Attribute("title");
            return(_webcam);
        }
Ejemplo n.º 29
0
        public static seltab Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            seltab _seltab = new seltab();

            _seltab.m_rocrailClient = rocrailClient;
            _seltab.m_addr0         = (int?)xml.Attribute("addr0");
            _seltab.m_addr1         = (int?)xml.Attribute("addr1");
            _seltab.m_addr2         = (int?)xml.Attribute("addr2");
            _seltab.m_addr3         = (int?)xml.Attribute("addr3");
            _seltab.m_addr4         = (int?)xml.Attribute("addr4");
            _seltab.m_addr5         = (int?)xml.Attribute("addr5");
            _seltab.m_addr6         = (int?)xml.Attribute("addr6");
            _seltab.m_addr7         = (int?)xml.Attribute("addr7");
            _seltab.m_b0sen         = (string)xml.Attribute("b0sen");
            _seltab.m_b1sen         = (string)xml.Attribute("b1sen");
            _seltab.m_b2sen         = (string)xml.Attribute("b2sen");
            _seltab.m_b3sen         = (string)xml.Attribute("b3sen");
            _seltab.m_b4sen         = (string)xml.Attribute("b4sen");
            _seltab.m_b5sen         = (string)xml.Attribute("b5sen");
            _seltab.m_b6sen         = (string)xml.Attribute("b6sen");
            _seltab.m_bus           = (int?)xml.Attribute("bus");
            _seltab.m_cmd           = (string)xml.Attribute("cmd");
            _seltab.m_desc          = (string)xml.Attribute("desc");
            _seltab.m_fifo          = (bool?)xml.Attribute("fifo");
            _seltab.m_id            = (string)xml.Attribute("id");
            _seltab.m_iid           = (string)xml.Attribute("iid");
            _seltab.m_inv           = (bool?)xml.Attribute("inv");
            _seltab.m_invnew        = (bool?)xml.Attribute("invnew");
            _seltab.m_locid         = (string)xml.Attribute("locid");
            _seltab.m_manager       = (bool?)xml.Attribute("manager");
            _seltab.m_minocc        = (int?)xml.Attribute("minocc");
            _seltab.m_movedelay     = (int?)xml.Attribute("movedelay");
            _seltab.m_nrtracks      = (int?)xml.Attribute("nrtracks");
            _seltab.m_offpos        = (int?)xml.Attribute("offpos");
            _seltab.m_ori           = (string)xml.Attribute("ori");
            _seltab.m_pending       = (bool?)xml.Attribute("pending");
            _seltab.m_port0         = (int?)xml.Attribute("port0");
            _seltab.m_port1         = (int?)xml.Attribute("port1");
            _seltab.m_port2         = (int?)xml.Attribute("port2");
            _seltab.m_port3         = (int?)xml.Attribute("port3");
            _seltab.m_port4         = (int?)xml.Attribute("port4");
            _seltab.m_port5         = (int?)xml.Attribute("port5");
            _seltab.m_port6         = (int?)xml.Attribute("port6");
            _seltab.m_port7         = (int?)xml.Attribute("port7");
            _seltab.m_pos           = (int?)xml.Attribute("pos");
            _seltab.m_prot          = (string)xml.Attribute("prot");
            _seltab.m_psen          = (string)xml.Attribute("psen");
            _seltab.m_sharedfb      = (bool?)xml.Attribute("sharedfb");
            _seltab.m_singlegate    = (bool?)xml.Attribute("singlegate");
            _seltab.m_state         = (string)xml.Attribute("state");
            _seltab.m_x             = (int?)xml.Attribute("x");
            _seltab.m_y             = (int?)xml.Attribute("y");
            _seltab.m_z             = (int?)xml.Attribute("z");
            Definitions.Tools.ParseList <fbevent>(_seltab.m_fbeventlist, xml, "fbevent", fbevent.Parse, rocrailClient);
            Definitions.Tools.ParseList <seltabpos>(_seltab.m_seltabposlist, xml, "seltabpos", seltabpos.Parse, rocrailClient);
            return(_seltab);
        }
Ejemplo n.º 30
0
        public static modocc Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            modocc _modocc = new modocc();

            _modocc.m_rocrailClient = rocrailClient;
            _modocc.m_title         = (string)xml.Attribute("title");
            Definitions.Tools.ParseList <occ>(_modocc.m_occlist, xml, "occ", occ.Parse, rocrailClient);
            return(_modocc);
        }