Logo Search packages:      
Sourcecode: abakus version File versions  Download package

Result Class Reference

#include <result.h>

List of all members.


Detailed Description

A conceptual result from an expression parse. Used to determine if the parse succeeded or failed. If it succeeded it will have a node value you can query as the answer.

Definition at line 32 of file result.h.


Public Types

enum  Type { Error, Null, Value }

Public Member Functions

bool failed () const
QString message () const
NodePtr result ()
const NodePtr result () const
 Result (Type type)
 Result (NodePtr node)
 Result (const QString &message="")
Type type () const

Static Public Member Functions

static ResultlastResult ()
static void setLastResult (const Result &result)

Private Attributes

QString m_message
NodePtr m_node
Type m_type

Static Private Attributes

static Resultm_lastResult = new Result

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index