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

#include <Interpreter.hh>

Public Member Functions

 Interpreter (const Interpreter &)=delete
 
Interpreteroperator= (const Interpreter &)=delete
 
 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 TclObject &name, const TclObject &value)
 
void unsetVariable (const char *name)
 
void registerSetting (BaseSetting &variable)
 
void unregisterSetting (BaseSetting &variable)
 
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 17 of file Interpreter.hh.

Constructor & Destructor Documentation

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

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 423 of file Interpreter.cc.

References execute().

Referenced by openmsx::MSXCommandController::MSXCommandController(), and setOutput().

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 428 of file Interpreter.cc.

References execute().

Referenced by setOutput(), and openmsx::MSXCommandController::~MSXCommandController().

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

Definition at line 188 of file Interpreter.cc.

References execute().

Referenced by setOutput(), and openmsx::GlobalCommandController::tabCompletion().

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

Definition at line 70 of file Interpreter.cc.

Referenced by openmsx::CommandLineParser::parse(), and setOutput().

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

Definition at line 193 of file Interpreter.cc.

Referenced by openmsx::GlobalCommandController::isComplete(), and setOutput().

Interpreter& openmsx::Interpreter::operator= ( const Interpreter )
delete
TclParser openmsx::Interpreter::parse ( string_ref  command)
void openmsx::Interpreter::poll ( )

Definition at line 433 of file Interpreter.cc.

Referenced by openmsx::EventDistributor::deliverEvents(), and setOutput().

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

Definition at line 240 of file Interpreter.cc.

References openmsx::BaseSetting::getValue(), and TclObject.

Referenced by setOutput(), and unregisterSetting().

Friends And Related Function Documentation

friend class TclObject
friend

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