openvrml::script_factory Class Referenceabstract

An abstract factory for scripts. More...

Inherits noncopyable.

Public Member Functions

virtual ~script_factory ()=0 throw ()
 Destroy. More...
 
virtual std::auto_ptr< scriptcreate_script (script_node &node, const boost::shared_ptr< resource_istream > &source)=0
 Create a script. More...
 

Protected Member Functions

 script_factory () throw ()
 Construct. More...
 

Detailed Description

An abstract factory for scripts.

Constructor & Destructor Documentation

openvrml::script_factory::~script_factory ( )
throw (
)
pure virtual

Destroy.

openvrml::script_factory::script_factory ( )
throw (
)
protected

Construct.

Member Function Documentation

std::auto_ptr< openvrml::script > openvrml::script_factory::create_script ( script_node node,
const boost::shared_ptr< resource_istream > &  source 
)
pure virtual

Create a script.

Implementations of this function are called in the implementation of script_node. A script instance is created to encapsulate scripting logic in a Script node instance.