Main Page | Class List | Directories | File List | Class Members | File Members

wxScriptFile Class Reference

A script file. More...

#include <script.h>

List of all members.

Public Member Functions

 wxScriptFile ()
virtual ~wxScriptFile ()
virtual bool Load (const wxString &file)=0
wxScriptFileType GetScriptFileType () const

Static Public Member Functions

static wxString GetAllowedExtString ()
 Returns a string in the form EXT1;EXT2;EXT3;EXT4 .
static wxArrayString GetAllowedExt ()

Static Public Attributes

static wxString m_strFileExt [wxSCRIPT_SUPPORTED_FORMATS]
 The array of the extensions recognized by wxScriptFile.

Protected Attributes

wxString m_strFileName
 The name of the file containing the scripted functions.
wxScriptFileType m_tScriptFile
 The default script file type.


Detailed Description

A script file.


Constructor & Destructor Documentation

wxScriptFile::wxScriptFile  )  [inline]
 

virtual wxScriptFile::~wxScriptFile  )  [inline, virtual]
 


Member Function Documentation

wxArrayString wxScriptFile::GetAllowedExt  )  [static]
 

wxString wxScriptFile::GetAllowedExtString  )  [static]
 

Returns a string in the form EXT1;EXT2;EXT3;EXT4 .

.... where EXT1, EXT2 ... are the extensions supported by the auto-recognition algorithm of the wxScriptFile class (which uses wxScriptFile::m_strFileExt to store the extensions associated with each allowed script format).

wxScriptFileType wxScriptFile::GetScriptFileType  )  const [inline]
 

virtual bool wxScriptFile::Load const wxString &  file  )  [pure virtual]
 


Member Data Documentation

wxString wxScriptFile::m_strFileExt [static]
 

The array of the extensions recognized by wxScriptFile.

You can access this array using the wxScriptFileType enum:

wxString old = wxScriptFile::m_strFileExt[wxLUA_SCRIPTFILE]; wxScriptFile::m_strFileExt[wxLUA_SCRIPTFILE] = "myext";

wxString wxScriptFile::m_strFileName [protected]
 

The name of the file containing the scripted functions.

wxScriptFileType wxScriptFile::m_tScriptFile [protected]
 

The default script file type.


The documentation for this class was generated from the following files:
Generated on Wed Jul 6 20:21:28 2005 for wxScript by  doxygen 1.4.3