Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# Representations/Motion/JointDataBuffer.cpp

Go to the documentation of this file.

    00001 /**
    00002 * @file JointDataBuffer.cpp
    00003 *
    00004 * Implementation of class JointDataBuffer
    00005 *
    00006 * @author Martin Lötzsch
    00007 * @author Max Risler
    00008 */
    00009
    00010 #include "JointDataBuffer.h"
    00011
    00012 JointDataBuffer::JointDataBuffer()
    00013 {
    00014 }
    00015
    00016 In& operator>>(In& stream,JointDataBuffer& jointDataBuffer)
    00017 {
    00018   for (int i=0;i<jointDataBufferNumOfFrames;i++)
    00019   {
    00020     stream >> jointDataBuffer.frame[i];
    00021   }
    00022   return stream;
    00023 }
    00024
    00025 /**
    00026  * Streaming operator that writes a JointDataBuffer to a stream.
    00027  * @param stream The stream to write on.
    00028  * @param jointDataBuffer The JointDataBuffer object.
    00029  * @return The stream.
    00030  */
    00031 Out& operator<<(Out& stream, const JointDataBuffer& jointDataBuffer)
    00032 {
    00033   for (int i=0;i<jointDataBufferNumOfFrames;i++)
    00034   {
    00035     stream << jointDataBuffer.frame[i];
    00036   }
    00037   return stream;
    00038 }