Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

Node Class Reference
(QAtResultParser::Node)
[QtBaseModule, QtBaseModule]

The Node class provides access to a generic value parsed from an AT command list. More...

    #include <QAtResultParser>

Public Functions


Detailed Description

The Node class provides access to a generic value parsed from an AT command list.

Instances of this class are returned from the QAtResultParser::readList() function.

See also QAtResultParser::readList().


Member Function Documentation

Node::Node ( const Node & other )

Create a new result list node from other.

Node::~Node ()

Destruct this node.

uint Node::asFirst () const

Returns the first number in a range that is contained within this node; otherwise returns zero if not a range.

See also isRange() and asLast().

uint Node::asLast () const

Returns the last number in a range that is contained within this node; otherwise returns zero if not a range.

See also isRange() and asFirst().

QList<QAtResultParser::Node> Node::asList () const

Returns the list contained within this node, or returns an empty list if this node does not contain a list.

See also isList().

uint Node::asNumber () const

Returns the number contained within this node, or return zero if node not a number.

See also isNumber().

QString Node::asString () const

Returns the string contained within this node; otherwise returns null if not a string.

See also isString().

bool Node::isList () const

Returns true if this node contains a list; otherwise returns false.

See also asList().

bool Node::isNumber () const

Returns true of if this node contains a number; otherwise returns false.

See also asNumber().

bool Node::isRange () const

Returns true if this node contains a range; otherwise returns false.

See also asFirst() and asLast().

bool Node::isString () const

Returns true if this node contains a string; otherwise returns false.

See also asString().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3