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

YMacroPlayer Class Reference

#include <YMacroPlayer.h>

List of all members.

Public Member Functions

 YMacroPlayer (const string &macroFileName)
virtual ~YMacroPlayer ()
bool error () const
bool finished ()
YCPValue evaluateNextBlock ()
void rewind ()

Protected Member Functions

void readMacroFile (const string &macroFileName)
void clearError ()
void setError ()

Protected Attributes

YBlockPtr _macro
bool _error
int _nextBlockNo


Constructor & Destructor Documentation

YMacroPlayer::YMacroPlayer const string &  macroFileName  ) 
 

Constructor

YMacroPlayer::~YMacroPlayer  )  [virtual]
 

Destructor


Member Function Documentation

void YMacroPlayer::clearError  )  [inline, protected]
 

Clear error status

bool YMacroPlayer::error  )  const [inline]
 

Report error status

YCPValue YMacroPlayer::evaluateNextBlock  ) 
 

Return the result of the next macro block and increment the internal block counter. Returns YCPNull() on any previous error or if finished. Check for error() or finished() before calling this!

bool YMacroPlayer::finished  ) 
 

Returns "true" if the execution of the entire macro is finished. Undefined on error, so check for error() first!

void YMacroPlayer::readMacroFile const string &  macroFileName  )  [protected]
 

Read and parse a macro file. Sets the internal "error" status.

void YMacroPlayer::rewind  ) 
 

Rewind macro execution - prepare to redo from start

void YMacroPlayer::setError  )  [inline, protected]
 

Set error status


Member Data Documentation

bool YMacroPlayer::_error [protected]
 

Error status

YBlockPtr YMacroPlayer::_macro [protected]
 

The parsed macro

int YMacroPlayer::_nextBlockNo [protected]
 

Number of the next macro block to execute


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