/* * MacGDBp * Copyright (c) 2011, Blue Static * * This program is free software; you can redistribute it and/or modify it under the terms of the GNU * General Public License as published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program 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 * General Public License for more details. * * You should have received a copy of the GNU General Public License along with this program; if not, * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #import // A VariableNode represents a property in the variable list display. It // converts XML response nodes to this format and extracts all the necessary // information. The fields of this class are defined by the spec: // http://www.xdebug.org/docs-dbgp.php#properties-variables-and-values @interface VariableNode : NSObject @property(readonly, nonatomic) NSString* name; @property(readonly, nonatomic) NSString* fullName; @property(readonly, nonatomic) NSString* className; @property(readonly, nonatomic) NSString* type; @property(readonly, nonatomic) NSString* value; @property(readonly, nonatomic) NSArray* children; @property(readonly, nonatomic) unsigned long childCount; @property(readonly, nonatomic) NSString* address; // Creates and initializes a new VariableNode from the XML response from the // debugger backend. - (instancetype)initWithXMLNode:(NSXMLElement*)node; // When properties are asynchrnously loaded, this method can be used to set // the children on a node from the list of children from the XML response. - (void)setChildrenFromXMLChildren:(NSArray*)children; // Whether or not this is a leaf node (i.e. does not have child properties). - (BOOL)isLeaf; // Returns a formatted type and classname display. - (NSString*)displayType; @end