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

# Modules/WalkingEngine/GT2005DebugData.cpp

Go to the documentation of this file.

    00001 /***************************************************************************
    00002 * @file GT2005DebugData.cpp
    00003 * class GT2005DebugData
    00004 * @author Denis Fisseler
    00005 ****************************************************************************/
    00006
    00007 #include "GT2005DebugData.h"
    00008 #include "Tools/Streams/InStreams.h"
    00009 #include "Tools/Streams/OutStreams.h"
    00010
    00011 GT2005DebugData::GT2005DebugData()
    00012 {
    00013   gt2005Status = 0;
    00014   avgAccelerationX = 0;
    00015   avgAccelerationY = 0;
    00016   avgAccelerationZ = 0;
    00017   diffAccelerationX = 0;
    00018   diffAccelerationY = 0;
    00019   diffAccelerationZ = 0;
    00020 }
    00021
    00022 GT2005DebugData::~GT2005DebugData()
    00023 {
    00024
    00025 }
    00026
    00027 In& operator >> (In& stream, GT2005DebugData& data)
    00028 {
    00029   stream >> data.gt2005Status;
    00030   stream >> data.avgAccelerationX;
    00031   stream >> data.avgAccelerationY;
    00032   stream >> data.avgAccelerationZ;
    00033   stream >> data.diffAccelerationX;
    00034   stream >> data.diffAccelerationY;
    00035   stream >> data.diffAccelerationZ;
    00036
    00037   return stream;
    00038 }
    00039
    00040 Out& operator << (Out& stream, const GT2005DebugData& data)
    00041 {
    00042   stream << data.gt2005Status;
    00043   stream << data.avgAccelerationX;
    00044   stream << data.avgAccelerationY;
    00045   stream << data.avgAccelerationZ;
    00046   stream << data.diffAccelerationX;
    00047   stream << data.diffAccelerationY;
    00048   stream << data.diffAccelerationZ;
    00049
    00050   return stream;
    00051 }