Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Scripter Class Reference

Inheritance diagram for Scripter:

Inheritance graph
[legend]
Collaboration diagram for Scripter:

Collaboration graph
[legend]

Detailed Description

Base class using a script.

Definition at line 14 of file Scripter.h.

Public Member Functions

 Scripter ()
virtual ~Scripter ()
void scriptInclude (const Path &filename)
 Include this script file.
void scriptDo (const std::string &input)
 Run this command.

Protected Attributes

ScriptStatem_script


Constructor & Destructor Documentation

Scripter::Scripter  ) 
 

Definition at line 16 of file Scripter.cpp.

00017 {
00018     m_script = new ScriptState();
00019     m_script->registerLeader(this);
00020 
00021     m_script->registerFunc("file_include", script_file_include);
00022     m_script->registerFunc("file_exists", script_file_exists);
00023 }

Scripter::~Scripter  )  [virtual]
 

Definition at line 25 of file Scripter.cpp.

00026 {
00027     delete m_script;
00028 }


Member Function Documentation

void Scripter::scriptDo const std::string &  input  ) 
 

Run this command.

Definition at line 43 of file Scripter.cpp.

00044 {
00045     m_script->doString(input);
00046 }

void Scripter::scriptInclude const Path filename  ) 
 

Include this script file.

Definition at line 34 of file Scripter.cpp.

00035 {
00036     m_script->doFile(filename);
00037 }


Field Documentation

ScriptState* Scripter::m_script [protected]
 

Definition at line 16 of file Scripter.h.


The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:56:40 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2