Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YError Class Reference

#include <YCode.h>

Inheritance diagram for YError:

YCode Rep List of all members.

Public Member Functions

 YError (int line=0, const char *msg=0)
 ~YError ()
YCPValue evaluate (bool cse=false)
string toString () const
std::ostream & toStream (std::ostream &str) const
constTypePtr type () const

Private Member Functions

 REP_BODY (YError)

Private Attributes

int m_line
const char * m_msg

Detailed Description

YError represents an error state as a YCode object


Constructor & Destructor Documentation

YError::YError int  line = 0,
const char *  msg = 0
 

YError::~YError  )  [inline]
 


Member Function Documentation

YCPValue YError::evaluate bool  cse = false  )  [virtual]
 

evaluate YCode to YCPValue if debugger == 0 called for parse time evaluation (i.e. constant subexpression elimination) else called for runtime evaluation

Reimplemented from YCode.

YError::REP_BODY YError   )  [private]
 

std::ostream & YError::toStream std::ostream &  str  )  const [virtual]
 

writes YCode to a stream see Bytecode for read

Implements YCode.

string YError::toString  )  const [virtual]
 

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

constTypePtr YError::type  )  const [inline, virtual]
 

return type (interesting mostly for function calls)

Reimplemented from YCode.


Member Data Documentation

int YError::m_line [private]
 

const char* YError::m_msg [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6