openMSX
Public Member Functions | Friends | List of all members
openmsx::Interpreter Class Reference

#include <Interpreter.hh>

Inheritance diagram for openmsx::Interpreter:
Inheritance graph
[legend]
Collaboration diagram for openmsx::Interpreter:
Collaboration graph
[legend]

Public Member Functions

 Interpreter (EventDistributor &eventDistributor)
 
 ~Interpreter ()
 
void setOutput (InterpreterOutput *output_)
 
void init (const char *programName)
 
void registerCommand (const std::string &name, Command &command)
 
void unregisterCommand (Command &command)
 
TclObject getCommandNames ()
 
bool isComplete (const std::string &command) const
 
TclObject execute (const std::string &command)
 
TclObject executeFile (const std::string &filename)
 
void setVariable (const std::string &name, TclObject value)
 
void unsetVariable (const std::string &name)
 
void registerSetting (BaseSetting &variable, const std::string &name)
 
void unregisterSetting (BaseSetting &variable, const std::string &name)
 
void createNamespace (const std::string &name)
 Create the global namespace with given name. More...
 
void deleteNamespace (const std::string &name)
 Delete the global namespace with given name. More...
 
TclParser parse (string_ref command)
 
void poll ()
 

Friends

class TclObject
 

Detailed Description

Definition at line 18 of file Interpreter.hh.

Constructor & Destructor Documentation

openmsx::Interpreter::Interpreter ( EventDistributor eventDistributor)
explicit
openmsx::Interpreter::~Interpreter ( )

Definition at line 107 of file Interpreter.cc.

References openmsx::MSXCPUInterface::cleanup().

Member Function Documentation

void openmsx::Interpreter::createNamespace ( const std::string &  name)

Create the global namespace with given name.

Parameters
nameName of the namespace, should not include '::' prefix.

Definition at line 406 of file Interpreter.cc.

References execute().

Referenced by openmsx::MSXCommandController::MSXCommandController().

void openmsx::Interpreter::deleteNamespace ( const std::string &  name)

Delete the global namespace with given name.

Parameters
nameName of the namespace, should not include '::' prefix.

Definition at line 411 of file Interpreter.cc.

References execute().

Referenced by openmsx::MSXCommandController::~MSXCommandController().

TclObject openmsx::Interpreter::execute ( const std::string &  command)
TclObject openmsx::Interpreter::executeFile ( const std::string &  filename)

Definition at line 205 of file Interpreter.cc.

References TclObject.

Referenced by openmsx::GlobalCommandController::source().

TclObject openmsx::Interpreter::getCommandNames ( )

Definition at line 186 of file Interpreter.cc.

References execute().

void openmsx::Interpreter::init ( const char *  programName)

Definition at line 70 of file Interpreter.cc.

Referenced by openmsx::CommandLineParser::parse().

bool openmsx::Interpreter::isComplete ( const std::string &  command) const

Definition at line 191 of file Interpreter.cc.

Referenced by openmsx::GlobalCommandController::isComplete().

TclParser openmsx::Interpreter::parse ( string_ref  command)

Definition at line 422 of file Interpreter.cc.

Referenced by openmsx::GlobalCommandController::tabCompletion().

void openmsx::Interpreter::poll ( )

Definition at line 416 of file Interpreter.cc.

Referenced by openmsx::EventDistributor::deliverEvents().

void openmsx::Interpreter::registerCommand ( const std::string &  name,
Command command 
)
void openmsx::Interpreter::registerSetting ( BaseSetting variable,
const std::string &  name 
)
void openmsx::Interpreter::setOutput ( InterpreterOutput output_)
inline
void openmsx::Interpreter::setVariable ( const std::string &  name,
TclObject  value 
)
void openmsx::Interpreter::unregisterCommand ( Command command)
void openmsx::Interpreter::unregisterSetting ( BaseSetting variable,
const std::string &  name 
)
void openmsx::Interpreter::unsetVariable ( const std::string &  name)

Definition at line 235 of file Interpreter.cc.

Referenced by unregisterSetting().

Friends And Related Function Documentation

friend class TclObject
friend

Definition at line 67 of file Interpreter.hh.

Referenced by execute(), executeFile(), Interpreter(), and registerSetting().


The documentation for this class was generated from the following files: