OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
MWScript::CompilerContext Class Reference

#include <compilercontext.hpp>

Inheritance diagram for MWScript::CompilerContext:
Collaboration diagram for MWScript::CompilerContext:

Public Types

enum  Type { Type_Full, Type_Dialogue, Type_Console }
 

Public Member Functions

 CompilerContext (Type type)
 
virtual bool canDeclareLocals () const
 Is the compiler allowed to declare local variables? More...
 
virtual char getGlobalType (const std::string &name) const
 'l: long, 's': short, 'f': float, ' ': does not exist. More...
 
virtual std::pair< char, boolgetMemberType (const std::string &name, const std::string &id) const
 
virtual bool isId (const std::string &name) const
 Does name match an ID, that can be referenced? More...
 
virtual bool isJournalId (const std::string &name) const
 Does name match a journal ID? More...
 
- Public Member Functions inherited from Compiler::Context
 Context ()
 
virtual ~Context ()
 
void setExtensions (const Extensions *extensions=0)
 
const ExtensionsgetExtensions () const
 

Private Attributes

Type mType
 

Member Enumeration Documentation

Enumerator
Type_Full 
Type_Dialogue 
Type_Console 

Constructor & Destructor Documentation

MWScript::CompilerContext::CompilerContext ( Type  type)

Member Function Documentation

bool MWScript::CompilerContext::canDeclareLocals ( ) const
virtual

Is the compiler allowed to declare local variables?

Implements Compiler::Context.

char MWScript::CompilerContext::getGlobalType ( const std::string &  name) const
virtual

'l: long, 's': short, 'f': float, ' ': does not exist.

Implements Compiler::Context.

Here is the call graph for this function:

std::pair< char, bool > MWScript::CompilerContext::getMemberType ( const std::string &  name,
const std::string &  id 
) const
virtual

Return type of member variable name in script id or in script of reference of id

Returns
first: 'l: long, 's': short, 'f': float, ' ': does not exist. second: true: script of reference

Implements Compiler::Context.

Here is the call graph for this function:

bool MWScript::CompilerContext::isId ( const std::string &  name) const
virtual

Does name match an ID, that can be referenced?

Implements Compiler::Context.

Here is the call graph for this function:

bool MWScript::CompilerContext::isJournalId ( const std::string &  name) const
virtual

Does name match a journal ID?

Implements Compiler::Context.

Here is the call graph for this function:

Member Data Documentation

Type MWScript::CompilerContext::mType
private

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