opal::blueprintManagerImpl::BlueprintManager Class Reference

#include <BlueprintManager.h>

List of all members.

Public Member Functions

 BlueprintManager ()
virtual ~BlueprintManager ()
virtual void OPAL_CALL loadFile (Blueprint &bp, const std::string &filename)

Private Member Functions

SolidDataloadSolid (const TiXmlNode *nodePtr, const std::string &filename)
JointDataloadJoint (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
MotorDataloadMotor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
AttractorMotorDataloadAttractorMotor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
GearedMotorDataloadGearedMotor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
ServoMotorDataloadServoMotor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
SpringMotorDataloadSpringMotor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
ThrusterMotorDataloadThrusterMotor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
SensorDataloadSensor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
AccelerationSensorDataloadAccelerationSensor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
InclineSensorDataloadInclineSensor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
RaycastSensorDataloadRaycastSensor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
VolumeSensorDataloadVolumeSensor (const TiXmlNode *nodePtr, const Blueprint &bp, const std::string &filename)
ShapeDataloadShape (const TiXmlNode *nodePtr, const std::string &filename)
void loadOffset (Matrix44r &offset, const TiXmlNode *nodePtr, const std::string &filename)
real getAttributeReal (const TiXmlNode *nodePtr, const std::string &name) const
std::string getAttributeString (const TiXmlNode *nodePtr, const std::string &name) const


Detailed Description

Definition at line 52 of file BlueprintManager.h.


Constructor & Destructor Documentation

opal::blueprintManagerImpl::BlueprintManager::BlueprintManager  ) 
 

Definition at line 64 of file BlueprintManager.cpp.

opal::blueprintManagerImpl::BlueprintManager::~BlueprintManager  )  [virtual]
 

Definition at line 67 of file BlueprintManager.cpp.


Member Function Documentation

real opal::blueprintManagerImpl::BlueprintManager::getAttributeReal const TiXmlNode *  nodePtr,
const std::string &  name
const [private]
 

Helper function; returns 0 if the attribute doesn't exist.

std::string opal::blueprintManagerImpl::BlueprintManager::getAttributeString const TiXmlNode *  nodePtr,
const std::string &  name
const [private]
 

Helper function; returns an empty string if the attribute doesn't exist.

AccelerationSensorData* opal::blueprintManagerImpl::BlueprintManager::loadAccelerationSensor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing AccelerationSensor XML elements. Allocates and returns a pointer to a new AccelerationSensorData object. Returns NULL if the element could not be loaded.

AttractorMotorData* opal::blueprintManagerImpl::BlueprintManager::loadAttractorMotor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing AttractorMotor XML elements. Allocates and returns a pointer to a new AttractorMotorData object. Returns NULL if the element could not be loaded.

virtual void OPAL_CALL opal::blueprintManagerImpl::BlueprintManager::loadFile Blueprint bp,
const std::string &  filename
[virtual]
 

Loads a Blueprint from an OPAL XML file. The file should contain a single OpalBlueprint element (additional ones will be ignored). The Blueprint can contain any number of Solids, Joints, Motors, and Sensors. Most of the object parameters are optional, in which case the usual default values will be used. The only required parameters are object types and references to other objects (i.e. the "References" elements in an XML file). For example, a Joint refers to two Solids; if either of those Solids are not in the file, the Joint will be ignored. The exception is Sensors' references to Solids; these aren't required because Sensors don't have to be attached to a Solid. For a particular element that does exist in the XML file, all attributes are always required. All object names, if used, must be unique.

GearedMotorData* opal::blueprintManagerImpl::BlueprintManager::loadGearedMotor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing GearedMotor XML elements. Allocates and returns a pointer to a new GearedMotorData object. Returns NULL if the element could not be loaded.

InclineSensorData* opal::blueprintManagerImpl::BlueprintManager::loadInclineSensor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing InclineSensor XML elements. Allocates and returns a pointer to a new InclineSensorData object. Returns NULL if the element could not be loaded.

JointData* opal::blueprintManagerImpl::BlueprintManager::loadJoint const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing Joint XML elements. Allocates and returns a pointer to a new JointData object. Returns NULL if the element could not be loaded.

MotorData* opal::blueprintManagerImpl::BlueprintManager::loadMotor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing Motor XML elements. Allocates and returns a pointer to a new MotorData object. Returns NULL if the element could not be loaded.

void opal::blueprintManagerImpl::BlueprintManager::loadOffset Matrix44r offset,
const TiXmlNode *  nodePtr,
const std::string &  filename
[private]
 

Helper function for parsing offset XML elements.

RaycastSensorData* opal::blueprintManagerImpl::BlueprintManager::loadRaycastSensor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing RaycastSensor XML elements. Allocates and returns a pointer to a new RaycastSensorData object. Returns NULL if the element could not be loaded.

SensorData* opal::blueprintManagerImpl::BlueprintManager::loadSensor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing Sensor XML elements. Allocates and returns a pointer to a new SensorData object. Returns NULL if the element could not be loaded.

ServoMotorData* opal::blueprintManagerImpl::BlueprintManager::loadServoMotor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing ServoMotor XML elements. Allocates and returns a pointer to a new ServoMotorData object. Returns NULL if the element could not be loaded.

ShapeData* opal::blueprintManagerImpl::BlueprintManager::loadShape const TiXmlNode *  nodePtr,
const std::string &  filename
[private]
 

Helper function for parsing Shape XML elements. Allocates and returns a pointer to a new ShapeData object. Returns NULL if the element could not be loaded.

SolidData* opal::blueprintManagerImpl::BlueprintManager::loadSolid const TiXmlNode *  nodePtr,
const std::string &  filename
[private]
 

Saves a Blueprint to an OPAL XML file.

Helper function for parsing Solid XML elements. Allocates and returns a pointer to a new SolidData object. Returns NULL if the element could not be loaded.

SpringMotorData* opal::blueprintManagerImpl::BlueprintManager::loadSpringMotor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing SpringMotor XML elements. Allocates and returns a pointer to a new SpringMotorData object. Returns NULL if the element could not be loaded.

ThrusterMotorData* opal::blueprintManagerImpl::BlueprintManager::loadThrusterMotor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing ThrusterMotor XML elements. Allocates and returns a pointer to a new ThrusterMotorData object. Returns NULL if the element could not be loaded.

VolumeSensorData* opal::blueprintManagerImpl::BlueprintManager::loadVolumeSensor const TiXmlNode *  nodePtr,
const Blueprint bp,
const std::string &  filename
[private]
 

Helper function for parsing VolumeSensor XML elements. Allocates and returns a pointer to a new VolumeSensorData object. Returns NULL if the element could not be loaded.


The documentation for this class was generated from the following files:
Generated on Tue May 16 17:49:58 2006 for OPAL by  doxygen 1.4.6-NO