Main Page   Modules   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

openvrml::script Class Reference

Abstract class implemented by scripting language bindings. More...

Collaboration diagram for openvrml::script:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~script ()=0
 Destroy.

virtual void initialize (double timestamp)=0
 Initialize the Script node.

virtual void process_event (const std::string &id, const field_value &value, double timestamp)=0
 Process an event.

virtual void events_processed (double timestamp)=0
 Execute script code after processing events.

virtual void shutdown (double timestamp)=0
 Shut down the Script node.


Protected Member Functions

 script (script_node &node)
 Construct.


Protected Attributes

script_nodenode
 A reference to the script_node that uses this script object.


Private Member Functions

 script (const script &)
 Non-copyable. Copy constructor declared but not defined.

script & operator= (const script &)
 Non-copyable. Assignment operator declared but not defined.


Detailed Description

Abstract class implemented by scripting language bindings.

The runtime instantiates subclasses of script for each VRML97 Script node; and calls its methods appropriately to execute script code.


Constructor & Destructor Documentation

openvrml::script::~script  )  [pure virtual]
 

Destroy.

openvrml::script::script script_node node  )  [protected]
 

Construct.

Parameters:
node a reference to the script_node that uses this script object.

openvrml::script::script const script &   )  [private]
 

Non-copyable. Copy constructor declared but not defined.


Member Function Documentation

void openvrml::script::events_processed double  timestamp  )  [pure virtual]
 

Execute script code after processing events.

void openvrml::script::initialize double  timestamp  )  [pure virtual]
 

Initialize the Script node.

script & openvrml::script::operator= const script &   )  [private]
 

Non-copyable. Assignment operator declared but not defined.

void openvrml::script::process_event const std::string &  id,
const field_value value,
double  timestamp
[pure virtual]
 

Process an event.

void openvrml::script::shutdown double  timestamp  )  [pure virtual]
 

Shut down the Script node.


Member Data Documentation

script_node & openvrml::script::node [protected]
 

A reference to the script_node that uses this script object.