#include <ih.h>
Public Methods | |
| InterpreterHandler (Precompiler &precompiler) | |
| ~InterpreterHandler () | |
| bool | have_one (Interpreter::Type type) |
| checks, if we already have such an type of interpreter. More... | |
| Interpreter * | get_default () |
| returns the default interpreter. More... | |
| bool | add (Interpreter *ip) |
| add a new interpreter to the list. More... | |
| bool | have_default () |
| Interpreter * | get_one (Interpreter::Type type) |
| returns an interpreter that matches this type. More... | |
| Interpreter * | get_one (std::string name) |
| bool | create_one (Interpreter::Type type, std::istream &in, std::ostream &out, std::ostream &err, bool default_int=false) |
| creates a new interpreter and adds it to the list. More... | |
Private Types | |
| typedef std::list< Interpreter *> | interpreter_list |
| typedef interpreter_list::iterator | interpreter_list_it |
Private Attributes | |
| interpreter_list | il |
| Precompiler & | precompiler |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add a new interpreter to the list. do not delete it. This will be done by the handler |
|
||||||||||||||||||||||||
|
creates a new interpreter and adds it to the list. check first if we do not already have one with have_one() function |
|
|
returns the default interpreter. If there is only one, this one will be returned. If there is no default interpreter, or if there are no interpreters 0 will be returned |
|
|
|
|
|
returns an interpreter that matches this type. returns 0 if no interpreter of this type was found if the EType of the type is DEFAULT the default interpreter will be returned |
|
|
|
|
|
checks, if we already have such an type of interpreter.
|
|
|
|
|
|
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001