openvrml::node_metatype_registry Class Reference

Registry for node_metatypes. More...

#include <openvrml/browser.h>

Public Member Functions

 ~node_metatype_registry () throw ()
 Destroy.
void register_node_metatype (const std::string &id, const boost::shared_ptr< node_metatype > &metatype) throw ( std::invalid_argument , std::bad_alloc )
 Register a node_metatype.

Detailed Description

Registry for node_metatypes.

Constructor & Destructor Documentation

openvrml::node_metatype_registry::~node_metatype_registry ( ) throw ()

Destroy.

Member Function Documentation

void openvrml::node_metatype_registry::register_node_metatype ( const std::string &  id,
const boost::shared_ptr< node_metatype > &  metatype 
) throw ( std::invalid_argument , std::bad_alloc )

Register a node_metatype.

This operation is destructive; that is, if a node_metatype is already registered under id, metatype will replace it in the registry.

Parameters
[in]idthe string identifier associated with metatype.
[in]metatypea node_metatype.
Exceptions
std::invalid_argumentif metatype is null.
std::bad_allocif memory allocation fails.