// This file is part of the GridBee Web Computing Framework // // Copyright 2011 Budapest University of Technology and Economics, // Public Administration's Centre of Information Technology (BME IK) // // GridBee is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // GridBee is distributed in the hope that it will be useful // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with GridBee. If not, see . package gridbee.worksource.boinc.webrpc.subclasses; import haxe.xml.Fast; class Daemon { public var host : String; public var command : String; public var status : String; public function new(input : Fast) { if (input.hasNode.host) host = input.node.host.innerData; if (input.hasNode.command) command = input.node.command.innerData; if (input.hasNode.status) status = input.node.status.innerData; } public function print() { trace('host: ' + host); trace('command: ' + command); trace('status: ' + status); } }