Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

OutputConfig< T > Class Template Reference

#include <Config.h>

Inheritance diagram for OutputConfig< T >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename T>
class OutputConfig< T >

stores an item for each joint, can be accessed via joint name or array offset

Definition at line 60 of file Config.h.

Public Member Functions

 OutputConfig (unsigned int firstOffset, unsigned int numOutputsToStore, const T &defValue)
 constructor
T & getEntry (size_t index)
 return the value at position index, which must exist (no range checking)
T & operator[] (size_t index)
 return the value at position index, which must exist (no range checking, equivalent to getEntry(index))
void saveXML (xmlNode *node, bool onlyOverwrite, std::set< std::string > &seen) const
 small trick -- override to save outputs in indexed order instead of alphabetical order

Protected Attributes

unsigned int offset
 the index offset of the first entry in outputs
std::vector< T > outputs
 storage of data for each output


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

Tekkotsu v3.0
Generated Fri May 11 20:08:29 2007 by Doxygen 1.4.7