Lines Matching defs:pelmPort

2535     const xml::ElementNode *pelmPort;
2536 while ((pelmPort = nl1.forAllNodes()))
2539 if (!pelmPort->getAttributeValue("slot", port.ulSlot))
2540 throw ConfigFileError(this, pelmPort, N_("Required UART/Port/@slot attribute is missing"));
2547 throw ConfigFileError(this, pelmPort, N_("Invalid value %RU32 in UART/Port/@slot attribute: value is not unique"), port.ulSlot);
2549 if (!pelmPort->getAttributeValue("enabled", port.fEnabled))
2550 throw ConfigFileError(this, pelmPort, N_("Required UART/Port/@enabled attribute is missing"));
2551 if (!pelmPort->getAttributeValue("IOBase", port.ulIOBase))
2552 throw ConfigFileError(this, pelmPort, N_("Required UART/Port/@IOBase attribute is missing"));
2553 if (!pelmPort->getAttributeValue("IRQ", port.ulIRQ))
2554 throw ConfigFileError(this, pelmPort, N_("Required UART/Port/@IRQ attribute is missing"));
2557 if (!pelmPort->getAttributeValue("hostMode", strPortMode))
2558 throw ConfigFileError(this, pelmPort, N_("Required UART/Port/@hostMode attribute is missing"));
2570 throw ConfigFileError(this, pelmPort, N_("Invalid value '%s' in UART/Port/@hostMode attribute"), strPortMode.c_str());
2572 pelmPort->getAttributeValue("path", port.strPath);
2573 pelmPort->getAttributeValue("server", port.fServer);
2588 const xml::ElementNode *pelmPort;
2589 while ((pelmPort = nl1.forAllNodes()))
2592 if (!pelmPort->getAttributeValue("slot", port.ulSlot))
2593 throw ConfigFileError(this, pelmPort, N_("Required LPT/Port/@slot attribute is missing"));
2600 throw ConfigFileError(this, pelmPort, N_("Invalid value %RU32 in LPT/Port/@slot attribute: value is not unique"), port.ulSlot);
2602 if (!pelmPort->getAttributeValue("enabled", port.fEnabled))
2603 throw ConfigFileError(this, pelmPort, N_("Required LPT/Port/@enabled attribute is missing"));
2604 if (!pelmPort->getAttributeValue("IOBase", port.ulIOBase))
2605 throw ConfigFileError(this, pelmPort, N_("Required LPT/Port/@IOBase attribute is missing"));
2606 if (!pelmPort->getAttributeValue("IRQ", port.ulIRQ))
2607 throw ConfigFileError(this, pelmPort, N_("Required LPT/Port/@IRQ attribute is missing"));
2609 pelmPort->getAttributeValue("path", port.strPath);
4640 xml::ElementNode *pelmPort = pelmPorts->createChild("Port");
4641 pelmPort->setAttribute("slot", port.ulSlot);
4642 pelmPort->setAttribute("enabled", port.fEnabled);
4643 pelmPort->setAttributeHex("IOBase", port.ulIOBase);
4644 pelmPort->setAttribute("IRQ", port.ulIRQ);
4659 pelmPort->setAttribute("server", port.fServer);
4663 pelmPort->setAttribute("path", port.strPath);
4669 pelmPort->setAttribute("hostMode", pcszHostMode);
4678 xml::ElementNode *pelmPort = pelmPorts->createChild("Port");
4679 pelmPort->setAttribute("slot", port.ulSlot);
4680 pelmPort->setAttribute("enabled", port.fEnabled);
4681 pelmPort->setAttributeHex("IOBase", port.ulIOBase);
4682 pelmPort->setAttribute("IRQ", port.ulIRQ);
4684 pelmPort->setAttribute("path", port.strPath);