OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::NodeFactory Class Reference

#include <NodeFactory.h>

Inheritance diagram for ot::NodeFactory:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual NodecreateNode (const std::string &name, StringTable &attributes)=0
virtual ~NodeFactory ()

Detailed Description

Definition at line 62 of file NodeFactory.h.


Constructor & Destructor Documentation

virtual ot::NodeFactory::~NodeFactory (  )  [inline, virtual]

Definition at line 76 of file NodeFactory.h.


Member Function Documentation

virtual Node* ot::NodeFactory::createNode ( const std::string &  name,
StringTable attributes 
) [pure virtual]

This method tries to create a new Node based on a given element type and the attributes of the element.

If it can not create a new Node ( because it doesn't know about the element type for example ), it returns NULL. This method has to be implemented by real NodeFactories.

Parameters:
name reference to string containing element name
attributes refenrence to StringTable containing attribute values
Returns:
pointer to new Node or NULL. The new Node must be allocated with new !

Implemented in ot::ButtonHoldFilterModule, ot::CallbackModule, ot::CommonNodeFactory, ot::ConsoleModule, ot::FileModule, ot::GroupGateModule, ot::InterpolatorModule, ot::NodeFactoryContainer, ot::TestModule, ot::ARTDataTrackerModule, ot::ARToolKitModule, ot::ARToolKitPlusModule, ot::CyberMouseModule, ot::DynaSightModule, ot::FastTrakModule, ot::FOBModule, ot::GPSModule, ot::InterSenseModule, ot::JoystickModule, ot::LinmouseModule, ot::MagicYModule, ot::MulticastInputModule, ot::P5GloveModule, ot::ParButtonModule, ot::SpaceMouseModule, ot::SpeechModule, ot::TargusModule, ot::UbisenseModule, ot::UltraTrakModule, ot::WacomGraphireModule, ot::XSensModule, ot::CORBAModule, ot::DwarfModule, ot::NetworkSinkModule, ot::NetworkSourceModule, ot::TCPModule, ot::VRPNModule, and ot::QtMouseEventModuleBase.


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

copyright (c) 2006 Graz University of Technology