cafe::ParseRun Class Reference
[CAF Environment (Cafe)]

#include <ParseRun.hpp>

List of all members.


Detailed Description

A helper class to parse the .Run: specification used by Controller's.

This is used internally to turn a list of Processore names into an object tree.

Run Syntax:

RUN = CLASS(INSTANCE) | CLASS (implies INSTANCE=CLASS#UUID) | (INSTANCE) (implies CLASS=Group) | RUN[,RUN]*

CLASS = IDENT (can be class or function name) INSTANCE = IDENT

Definition at line 31 of file ParseRun.hpp.

Public Member Functions

 ParseRun ()
std::list< Processor * > parse (const std::string &input)

Private Member Functions

void init (const std::string &input)
bool next ()
void skip_ws ()
void ident ()
cafe::Processordef ()
void error (const char *msg)

Private Attributes

std::string _input
const char * _ptr
char _ch
std::string _ident


Constructor & Destructor Documentation

cafe::ParseRun::ParseRun  ) 
 

Definition at line 11 of file ParseRun.cpp.


Member Function Documentation

cafe::Processor * cafe::ParseRun::def  )  [private]
 

Definition at line 42 of file ParseRun.cpp.

References _ch, _ident, error(), ident(), next(), and skip_ws().

Referenced by parse().

void cafe::ParseRun::error const char *  msg  )  [private]
 

Definition at line 100 of file ParseRun.cpp.

References _input, and _ptr.

Referenced by def().

void cafe::ParseRun::ident  )  [private]
 

Definition at line 32 of file ParseRun.cpp.

References _ch, _ident, and next().

Referenced by def().

void cafe::ParseRun::init const std::string &  input  )  [private]
 

Definition at line 14 of file ParseRun.cpp.

References _ch, _ident, _input, and _ptr.

Referenced by parse().

bool cafe::ParseRun::next  )  [private]
 

Definition at line 22 of file ParseRun.cpp.

References _ch, and _ptr.

Referenced by def(), ident(), parse(), and skip_ws().

std::list< Processor * > cafe::ParseRun::parse const std::string &  input  ) 
 

Definition at line 82 of file ParseRun.cpp.

References _ch, def(), init(), next(), and skip_ws().

Referenced by cafe::Controller::Controller(), cafe::If::If(), and cafe::IfPr::IfPr().

void cafe::ParseRun::skip_ws  )  [private]
 

Definition at line 27 of file ParseRun.cpp.

References _ch, and next().

Referenced by def(), and parse().


Member Data Documentation

char cafe::ParseRun::_ch [private]
 

Definition at line 47 of file ParseRun.hpp.

Referenced by def(), ident(), init(), next(), parse(), and skip_ws().

std::string cafe::ParseRun::_ident [private]
 

Definition at line 48 of file ParseRun.hpp.

Referenced by def(), ident(), and init().

std::string cafe::ParseRun::_input [private]
 

Definition at line 45 of file ParseRun.hpp.

Referenced by error(), and init().

const char* cafe::ParseRun::_ptr [private]
 

Definition at line 46 of file ParseRun.hpp.

Referenced by error(), init(), and next().


The documentation for this class was generated from the following files:
Generated on Thu Apr 3 04:14:27 2008 for CAF by doxygen 1.3.4