Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Interpreter Class Reference

base interpreter class. More...

#include <ih.h>

Inheritance diagram for Interpreter::

Little::Interpreter List of all members.

Public Methods

Type get_type () const
bool is_default () const
 Interpreter ()
 Interpreter (Type type, bool default_int, std::istream &in, std::ostream &out, std::ostream &err)
virtual ~Interpreter ()
virtual bool exec ()=0
 start program excecution. More...

virtual bool exec (std::string buffer)=0
bool operator! () const
bool is_valid () const
void set_io (std::istream &in, std::ostream &out, std::ostream &err)
void set_out (std::ostream &out)
std::ostream & get_out () const
std::istream & get_in () const
std::ostream & get_err () const

Protected Attributes

Type type
bool default_int
std::istream * in
std::ostream * out
std::ostream * err
bool valid

Detailed Description

base interpreter class.


Constructor & Destructor Documentation

Interpreter::Interpreter (    ) 
 

Interpreter::Interpreter (  Type    type,
bool    default_int,
std::istream &    sin,
std::ostream &    sout,
std::ostream &    serr
) 
 

Interpreter::~Interpreter (    )  [virtual]
 

Reimplemented in Little::Interpreter.


Member Function Documentation

virtual bool Interpreter::exec (  std::string    command )  [pure virtual]
 

Reimplemented in Little::Interpreter.

virtual bool Interpreter::exec (    )  [pure virtual]
 

start program excecution.

Reimplemented in Little::Interpreter.

std::ostream& Interpreter::get_err (    )  const [inline]
 

std::istream& Interpreter::get_in (    )  const [inline]
 

std::ostream& Interpreter::get_out (    )  const [inline]
 

Type Interpreter::get_type (    )  const [inline]
 

bool Interpreter::is_default (    )  const [inline]
 

bool Interpreter::is_valid (    )  const [inline]
 

bool Interpreter::operator! (    )  const [inline]
 

void Interpreter::set_io (  std::istream &    sin,
std::ostream &    sout,
std::ostream &    serr
) 
 

void Interpreter::set_out (  std::ostream &    sout ) 
 


Member Data Documentation

bool Interpreter::default_int [protected]
 

std::ostream* Interpreter::err [protected]
 

std::istream* Interpreter::in [protected]
 

std::ostream* Interpreter::out [protected]
 

Type Interpreter::type [protected]
 

bool Interpreter::valid [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Nov 20 02:19:53 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001